1/* 2 Q2A Market (c) Jatin Soni 3 http://www.q2amarket.com/ 4 5 File: js/snow-core.js 6 Version: Snow 1.4 7 Description: JavaScript helpers for SnowFlat theme 8 9 This program is free software: you can redistribute it and/or modify 10 it under the terms of the GNU General Public License as published by 11 the Free Software Foundation, either version 3 of the License, or 12 (at your option) any later version. 13 14 This program is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 GNU General Public License for more details. 18*/ 19$(document).ready(function () { 20 21 /** 22 * Account menu box toggle script 23 */ 24 $('#qam-account-toggle').click(function (e) { 25 e.stopPropagation(); 26 $(this).toggleClass('account-active'); 27 $('.qam-account-items').slideToggle(100); 28 }); 29 30 $(document).click(function () { 31 $('#qam-account-toggle.account-active').removeClass('account-active'); 32 $('.qam-account-items:visible').slideUp(100); 33 }); 34 35 $('.qam-account-items').click(function (event) { 36 event.stopPropagation(); 37 }); 38 39 /** 40 * Main navigation toggle script 41 */ 42 $('.qam-menu-toggle').click(function () { 43 $('.qa-nav-main').slideToggle(100); 44 $(this).toggleClass('current'); 45 }); 46 47 /* 48 * Sidepannel Toggle Click Function 49 */ 50 $('#qam-sidepanel-toggle').click(function () { 51 $('#qam-sidepanel-mobile').toggleClass('open'); 52 $(this).toggleClass('active'); 53 $(this).find('i').toggleClass('icon-right-open-big'); 54 }); 55 56 /** 57 * Toggle search box for small screen 58 */ 59 $('#qam-search-mobile').click(function () { 60 $(this).toggleClass('active'); 61 $('#the-top-search').slideToggle('fast'); 62 }); 63 64 65 /* 66 * Add wrapper to users point on users list 67 */ 68 $('.qa-top-users-score').wrapInner('<div class="qam-user-score-icon"></div>'); 69 70 /* 71 * add wrapper to the message sent note 'td' 72 */ 73 $('.qa-part-form-message .qa-form-tall-ok').wrapInner('<div class="qam-pm-message"></div>'); 74 75 // fix the visible issue for main nav, top search-box 76 $(window).resize(function () { 77 if (window.matchMedia('(min-width: 980px)').matches) { 78 $(".qam-search.the-top .qa-search").hide(); 79 $(".qa-nav-main").show('fast', function() { $(this).css('display','inline-block'); }); 80 } else { 81 $(".qam-search.the-top .qa-search").show(); 82 $(".qa-nav-main").hide(); 83 $('.qam-menu-toggle').removeClass('current'); 84 } 85 }); 86 87});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.