1/* 2 * jQuery Form Tips 1.2.6 3 * By Manuel Boy (http://www.manuelboy.de) 4 * Copyright (c) 2012 Manuel Boy 5 * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php 6 */ 7 8(function (a) { 9 a.fn.formtips = function (b) { 10 var c = a.extend({tippedClass: "tipped"}, b); 11 return this.each(function () { 12 var b = a(this); 13 var d = a(b).attr("type"); 14 if (d != "file" && d != "checkbox" && d != "radio") { 15 a(b).bind("focus", function () { 16 var b = a(this).attr("title"); 17 if (a(this).val() == b) { 18 a(this).val("").removeClass(c.tippedClass) 19 } 20 return true 21 }); 22 a(b).bind("blur", function () { 23 var b = a(this).attr("title"); 24 if (a(this).val() == "") { 25 a(this).val(b).addClass(c.tippedClass) 26 } 27 return true 28 }); 29 var e = a(b).attr("title"); 30 if (a(b).val() == "" || a(b).val() == a(this).attr("title")) { 31 a(b).val(e).addClass(c.tippedClass) 32 } else { 33 a(b).removeClass(c.tippedClass) 34 } 35 a(b).parentsUntil("form").parent().submit(function () { 36 var d = a(b).attr("title"); 37 if (a(b).val() == d) { 38 a(b).val("").removeClass(c.tippedClass) 39 } 40 }) 41 } 42 }) 43 } 44 45})(jQuery); 46 47jQuery.extend(verge); 48var desktop = true, 49 tablet = false, 50 mobile = false; 51 52jQuery(function ($) { 53 54 function equalHeight(group) { 55 var tallest = 0; 56 group.each(function () { 57 thisHeight = $(this).height(); 58 if (thisHeight > tallest) { 59 tallest = thisHeight; 60 } 61 }); 62 group.height(tallest); 63 }; 64 65 $(window).resize(function () { 66 if ($.viewportW() >= 1024) { 67 desktop = true; 68 tablet = false; 69 mobile = false; 70 } 71 if ($.viewportW() >= 768 && $.viewportW() <= 1023) { 72 desktop = false; 73 tablet = true; 74 mobile = false; 75 } else { 76 if ($.viewportW() <= 767) { 77 desktop = false; 78 tablet = false; 79 mobile = true; 80 } 81 } 82 if (!mobile) { 83 $('.main-nav__list').show(); 84 $('.sidebar__menu__list').show(); 85 } 86 87 }).resize(); 88 89 $('input[title]').formtips(); 90 91 92 93 94 95 96 97 98$('.search input[type="text"]').formtips(); 99 100 101 var width = $(window).width(); 102 if ($("html").hasClass("ie8") && width < 940) { 103 $('html').addClass('width800'); 104 } 105 else { 106 $('html').removeClass('width800'); 107 } 108 109 if (navigator.userAgent.indexOf('Android') >= 0) { 110 $('.nonandroid-link').hide(); 111 $('.ios-link').hide(); 112 $('.windows-link').hide(); 113 $('.android-link').css("display", "inline-block"); 114 } 115 else if (/iP(hone|od|ad)/i.test(navigator.userAgent)) { 116 $('.nonandroid-link').css("display", "inline-block"); 117 $('.ios-link').css("display", "inline-block"); 118 $('.windows-link').hide(); 119 $('.android-link').hide(); 120 } 121 else if (/Windows Phone/i.test(navigator.userAgent)) { 122 $('.nonandroid-link').css("display", "inline-block"); 123 $('.ios-link').hide(); 124 $('.windows-link').css("display", "inline-block"); 125 $('.android-link').hide(); 126 } 127 128 $(".select-menu__list li").on("click", function () { 129 $(this).toggleClass("active"); 130 }); 131 132// $(".mobile-menu-btn").on("click",function(){ 133// $(".main-menu").slideToggle(); 134// }); 135 136//Append span to main-menu links if their parents has submenu 137 138 $(".main-nav .show-menu-btn").on("click", function(){ 139 $(".main-nav__list").slideToggle(); 140 $(".main-nav__list__item .submenu").slideUp("slow"); 141 $(".main-nav__list__item").removeClass('opened').find('span').text('+'); 142 }); 143 144 $(".sidebar__menu .show-menu-btn").on("click", function(){ 145 $(".sidebar__menu__list").slideToggle(); 146 }); 147 148 $(".contact-bar").on("click", function(e){
149 var bar = $(this); 150 bar.animate({right:"320px"}); 151 152 }); 153 154 $(".contact-bar>ul>li>a").on("click", function(e){ 155 e.preventDefault(); 156 var $this = $(this); 157 var elem = $this.closest("li"); 158 $(".contact-bar ul li").removeClass("active"); 159 elem.addClass("active"); 160 $(".contact-bar-drop").fadeOut(); 161 elem.find(".contact-bar-drop").fadeIn(); 162 163 }); 164 165 $("body").on("click", function(ev){ 166 if(!$(ev.target).closest(".contact-bar").length){ 167 $(".contact-bar").animate({right:"0px"}); 168 $(".contact-bar ul li").removeClass("active"); 169 } 170 171 }); 172 173 (function (){ 174 $(".main-nav__list__item").has('ul').append('<span>+</span>'); 175 176 })(); 177 178 $(".main-nav__list__item span").click(function () { 179 var $this = $(this); 180 var item = $(this).parent(); 181 if(item.hasClass('opened')){ 182 item.find('ul').slideUp("slow"); 183 item.removeClass('opened'); 184 $this.text('+'); 185 } 186 else { 187 //$(".side-menu__list .side-menu__list__item").removeClass('opened').find('span').text('+'); 188 //$('.side-menu .side-sublist').slideUp("slow"); 189 item.find('ul').slideDown("slow"); 190 item.addClass('opened'); 191 $this.text('-'); 192 } 193 }); 194 195 //$('.search input[type="text"]').formtips(); 196 197 198 $(window).load(function () { 199 200 //equalHeight($('.categories-preview .category-item .text .title')); 201 202 //sliderInit(); 203 // sliderReinit(); 204 205 206 }); 207 208 $(window).resize(function () { 209 210 }).resize(); 211 212 213 214$(function () { 215 function equalHeight(group, groupSize) { 216 if (!group.length) { 217 return; 218 } 219 groupSize = +(groupSize || 0); 220 if (groupSize < 1) { 221 groupSize = group.length; 222 } 223 var start = -groupSize, part; 224 while ((part = group.slice(start += groupSize, start + groupSize)) && part.length) { 225 part.height(Math.max.apply(null, $.makeArray(part.map(function () { 226 return $(this).height(); 227 })))); 228 } 229 } 230 231 equalHeight($('footer .col'), 3); 232}); 233$(window).load(function () { 234 235 236}); 237}); 238 239 240 241 242 243 244
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.