1function bookmark_catalog_unicase_cat( fav_id, event, list_id ) 2{ 3 if(list_id < 1) list_id = 0; 4 $.get(dle_root + "engine/modules/catalog/templ/unicase/favorites_cat.php", { fav_id: fav_id, list_id: list_id, action: event }, function(data){ 5 $("#fav-id-" + fav_id).html(data); 6 }); 7 return false; 8} 9function bookmark_catalog_unicase( fav_id, event, list_id ) 10{ 11 if(list_id < 1) list_id = 0; 12 $.get(dle_root + "engine/modules/catalog/templ/unicase/favorites.php", { fav_id: fav_id, list_id: list_id, action: event }, function(data){ 13 $("#fav-id-" + fav_id).html(data); 14 }); 15 return false; 16} 17 18Share = { 19 vkontakte: function(purl, ptitle, pimg, text) { 20 url = 'https://vk.com/share.php?'; 21 url += 'url=' + encodeURIComponent(purl); 22 url += '&title=' + encodeURIComponent(ptitle); 23 url += '&description=' + encodeURIComponent(text); 24 url += '&image=' + encodeURIComponent(pimg); 25 url += '&noparse=true'; 26 Share.popup(url); 27 }, 28 odnoklassniki: function(purl, text) { 29 url = 'https://www.odnoklassniki.ru/dk?st.cmd=addShare&st.s=1'; 30 url += '&st.comments=' + encodeURIComponent(text); 31 url += '&st._surl=' + encodeURIComponent(purl); 32 Share.popup(url); 33 }, 34 facebook: function(purl, ptitle, pimg, text) { 35 url = 'https://www.facebook.com/sharer.php?s=100'; 36 url += '&p[title]=' + encodeURIComponent(ptitle); 37 url += '&p[summary]=' + encodeURIComponent(text); 38 url += '&p[url]=' + encodeURIComponent(purl); 39 url += '&p[images][0]=' + encodeURIComponent(pimg); 40 Share.popup(url); 41 }, 42 twitter: function(purl, ptitle) { 43 url = 'https://twitter.com/share?'; 44 url += 'text=' + encodeURIComponent(ptitle); 45 url += '&url=' + encodeURIComponent(purl); 46 url += '&counturl=' + encodeURIComponent(purl); 47 Share.popup(url); 48 }, 49 mailru: function(purl, ptitle, pimg, text) { 50 url = 'https://connect.mail.ru/share?'; 51 url += 'url=' + encodeURIComponent(purl); 52 url += '&title=' + encodeURIComponent(ptitle); 53 url += '&description=' + encodeURIComponent(text); 54 url += '&imageurl=' + encodeURIComponent(pimg); 55 Share.popup(url) 56 }, 57 58 popup: function(url) { 59 window.open(url,'','toolbar=0,status=0,width=626,height=436'); 60 } 61}; 62 63$( document ).ready(function() { 64 tocart('update', 'update', 'update'); 65}); 66 67$('.search-catalog .search-button').click(function() { 68 var v = $('.search-catalog #s').val(); 69 if(v) { 70 window.location.href = '/catalogue/search/~s=' + v; 71 } 72}); 73 74$(document).ready(function(){ 75$('#site_search #s').keypress(function(event){ 76 if(event.keyCode == 13){ 77 var v = $('.search-catalog #s').val(); 78 if(v) { 79 window.location.href = '/catalogue/search/~s=' + v; 80 } 81 } 82}); 83})
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.