1(function($) { 2$(function() { 3 $('div.tabs').each(function() { 4 $(this).find('li').each(function(i) { 5 $(this).click(function(){ 6 $(this).addClass('act').siblings().removeClass('act') 7 .parents('div.smsVoiting').find('div.tariffs').hide().end().find('div.tariffs:eq('+i+')').fadeIn(150); 8 }); 9 }); 10 }); 11 12 $(".show_popup a").click( 13 function(event){ 14 $('#idDialogAskQuestion').bPopup(); 15 } 16 ); 17 18 $(".show_member_a a").click( 19 function(event){ 20 $('#idMemberArea').bPopup(); 21 } 22 ); 23 24 $("a.show_photo_u").click( 25 function(event){ 26 $('#idUploadsPhoto').bPopup(); 27 } 28 ); 29 30}) 31})(jQuery) 32 33var $v = jQuery.noConflict(); 34 35/* Ð£Ð²ÐµÐ´Ð¾Ð¼Ð»ÐµÐ½Ð¸Ñ Ð²ÑплÑваÑÑие */ 36 37function showSuccessToast(message) { 38 $v().toastmessage('showSuccessToast', message); 39} 40 41function showNoticeToast(message) { 42 $v().toastmessage('showNoticeToast', message); 43} 44 45function showWarningToast(message) { 46 $v().toastmessage('showWarningToast', message); 47} 48 49function showErrorToast(message) { 50 $v().toastmessage('showErrorToast', message); 51} 52 53/* СиÑÑема голоÑований ÑеÑез POST */ 54 55$v(function(){ 56 $v('#key_yes').click(function(){ 57 $v('#ajaxvote').html('<div class="ajax-loader"><div class="op"></div><div class="wait">Processing...</div></div>'); 58 var persone_id = $v(this).attr('persone_id'); 59 var person_name = $v(this).attr('person_name'); 60 var language = $v(this).attr('language'); 61 var ba = $v(this).attr('ba'); 62 63 cookieID=GetCookie(persone_id); 64 $v.post('/plugins/content/Golosplugin/votes26.php',{ enabled: enabled, cookieID:cookieID,persone_id: persone_id,person_name:person_name,language:language,ba:ba },changerating); 65 setTimeout(function() { 66 $v('#ajaxvote').html(''); 67 }, 1000); 68 69 }); 70}); 71 72 73$v(function(){ 74 $v('#key_no1').click(function(){ 75 76 var url = $v(this).attr('url'); 77 var numbervotes = $v(this).attr('numbervotes'); 78 var description = $v(this).attr('description'); 79 var price = $v(this).attr('price'); 80 var orderid = $v(this).attr('orderid'); 81 var seviceid = $v(this).attr('seviceid'); 82 var telephone=document.getElementById('nomerab1').value; 83 84 $v.post('/plugins/content/Golosplugin/votes2.php',{ enabled: enabled, url:url,numbervotes: numbervotes,description:description,price:price,orderid:orderid,seviceid:seviceid,telephone:telephone},viewtoast); 85 86 87 }); 88}); 89 90$v(function(){ 91 $v('#key_no2').click(function(){ 92 93 var url = $v(this).attr('url'); 94 var numbervotes = $v(this).attr('numbervotes'); 95 var description = $v(this).attr('description'); 96 var price = $v(this).attr('price'); 97 var orderid = $v(this).attr('orderid'); 98 var seviceid = $v(this).attr('seviceid'); 99 var telephone=document.getElementById('nomerab2').value; 100 101 $v.post('/plugins/content/Golosplugin/votes2.php',{ enabled: enabled, url:url,numbervotes: numbervotes,description:description,price:price,orderid:orderid,seviceid:seviceid,telephone:telephone},viewtoast); 102 103 104 }); 105}); 106 107$v(function(){ 108 $v('#key_no3').click(function(){ 109 110 var url = $v(this).attr('url'); 111 var numbervotes = $v(this).attr('numbervotes'); 112 var description = $v(this).attr('description'); 113 var price = $v(this).attr('price'); 114 var orderid = $v(this).attr('orderid'); 115 var seviceid = $v(this).attr('seviceid'); 116 var telephone=document.getElementById('nomerab3').value; 117 118 $v.post('/plugins/content/Golosplugin/votes2.php',{ enabled: enabled, url:url,numbervotes: numbervotes,description:description,price:price,orderid:orderid,seviceid:seviceid,telephone:telephone},viewtoast); 119 120 121 }); 122}); 123 124 125$v(function(){ 126 $v('#key_no5').click(function(){ 127 128 var url = $v(this).attr('url'); 129 var numbervotes = $v(this).attr('numbervotes'); 130 var description = $v(this).attr('description'); 131 var price = $v(this).attr('price'); 132 var orderid = $v(this).attr('orderid'); 133 var seviceid = $v(this).attr('seviceid'); 134 var telephone=document.getElementById('nomerab5').value; 135 136 $v.post('/plugins/content/Golosplugin/votes2.php',{ enabled: enabled, url:url,numbervotes: numbervotes,description:description,price:price,orderid:orderid,seviceid:seviceid,telephone:telephone},viewtoast); 137 138 139 }); 140}); 141 142$v(function(){ 143 $v('#key_no4').click(function(){ 144 145 var url = $v(this).attr('url'); 146 var numbervotes = $v(this).attr('numbervotes'); 147 var description = $v(this).attr('description'); 148 var price = $v(this).attr('price'); 149 var orderid = $v(this).attr('orderid'); 150 var seviceid = $v(this).attr('seviceid'); 151 var telephone=document.getElementById('nomerab4').value; 152 153 $v.post('/plugins/content/Golosplugin/votes2.php',{ enabled: enabled, url:url,numbervotes: numbervotes,description:description,price:price,orderid:orderid,seviceid:seviceid,telephone:telephone},viewtoast); 154 155 156 }); 157}); 158/* ÐинамиÑеÑкое изменение показаÑелей */ 159 160function proverka(input, act) { 161 if (act == 'kup') { 162 input.value = input.value.replace(/[^\d,]/g, ''); 163 } 164 if (act == 'blur') { 165 if (input.value[10]) { 166 input.value = input.value.replace(/[^\d,]/g, ''); 167 var inptlength = input.value.length; 168 var tempinpt = input.value; 169 input.value = ''; 170 for(i=0;i<11;i++){ 171 if (i==0){ input.value = '+'; } 172 if (i==1){ input.value = input.value + ' ('; } 173 if (i==4){ input.value = input.value + ') '; } 174 if (i==7){ input.value = input.value + ' '; } 175 input.value = input.value + tempinpt[i]; 176 } 177 } 178 } 179 }; 180 181function changerating(data) { 182 var response = data.split("|"); 183 console.log(response); 184 185 186 /* ÐпÑеделÑем Ñип вÑплÑваÑÑего ÑообÑÐµÐ½Ð¸Ñ */ 187 if (response[4]=="0"){ 188 189 showErrorToast(response[2]); 190 } else {$v('#rating').html(response[0]); 191 $v('#place').html(response[1]); 192 $v('#rating_today').html(response[3]); 193 showSuccessToast(response[2]); 194 } 195 196if (response[4]=="1") 197 {var exp = new Date(); 198 exp.setTime(exp.getTime() + (24*60*60*1000)); 199 SetCookie (response[5], 1, exp);} 200 201} 202 203function viewtoast(data) { 204 var response = data.split("|"); 205 console.log(response); 206 207 showSuccessToast(response[0]); 208 209 210} 211 212 213function voteVkontakte() { 214 var title_source = $v('title').text(); 215 var title_arr = title_source.split(" "); 216 var titleExport = title_arr[0] + ' ' + title_arr[1] + " â лÑÑÑий акÑеÑ"; 217 var descriptionExport = "Я оÑдал Ð³Ð¾Ð»Ð¾Ñ Ð·Ð° ÑÑого акÑеÑа. Рза кого пÑоголоÑÑеÑÑ ÑÑ? Ðомоги вÑбÑаÑÑ Ð»ÑÑÑего акÑеÑа 2012 года."; 218 var urlExport = window.location.href 219 var url = "http://vkontakte.ru/share.php?"+"url="+(urlExport)+"&title="+encodeURIComponent(titleExport)+ "&description="+encodeURIComponent(descriptionExport); 220 var left = (document.documentElement.clientWidth / 2) - 310; 221 var top = (document.documentElement.clientHeight / 2) - 200; 222 223 224 window.open(url,'','toolbar=0,status=0,width=626,height=436,left='+left+',top='+top); 225 226} 227function getCookieVal (offset) { 228 var endstr = document.cookie.indexOf (";", offset); 229 if (endstr == -1) 230 endstr = document.cookie.length; 231 return unescape(document.cookie.substring(offset, endstr)); 232} 233 234function GetCookie (name) { 235 var arg = name + "="; 236 var alen = arg.length; 237 var clen = document.cookie.length; 238 var i = 0; 239 while (i < clen) { 240 var j = i + alen; 241 if (document.cookie.substring(i, j) == arg) 242 return getCookieVal (j); 243 i = document.cookie.indexOf(" ", i) + 1; 244 if (i == 0) break; 245 } 246 return null; 247} 248 249function SetCookie (name, value,exp) { 250 var argv = SetCookie.arguments; 251 var argc = SetCookie.arguments.length; 252 var expires = (argc > 2) ? argv[2] : null; 253 var path = (argc > 3) ? argv[3] : null; 254 var domain = (argc > 4) ? argv[4] : null; 255 var secure = (argc > 5) ? argv[5] : false;
256 document.cookie = name + "=" + escape (value) + 257 ((expires == null) ? "" : ("; expires=" + exp.toGMTString())) + 258 ((path == null) ? "" : ("; path=" + path)) + 259 ((domain == null) ? "" : ("; domain=" + domain)) + 260 ((secure == true) ? "; secure" : ""); 261} 262 263var enabled=""; 264var exp = new Date(); 265exp.setTime(exp.getTime() + (60*1000)); 266 // valid: one minute (60seconds*1000 hundreds) 267SetCookie ('CookieValidator', 1, exp); 268enabled = GetCookie('CookieValidator');
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.