1function display_loading(){ 2 document.getElementById('__loading_div').style.display = 'block'; 3} 4 5function close_loading(){ 6 document.getElementById('__loading_div').style.display = 'none'; 7} 8 9function display_floatingMessage(message, title){ 10 if(message == undefined) var message = ''; 11 if(title == undefined) var title = ''; 12 13 if(message !== false){ 14 document.getElementById('__message_div_message_part').innerHTML = message; 15 } 16 17 document.getElementById('__message_title').innerHTML = title; 18 document.getElementById('__message_div').style.display = 'block'; 19} 20 21function close_floatingMessage(){ 22 document.getElementById('__message_div').style.display = 'none'; 23 document.getElementById('__message_div_message_part').innerHTML = ''; 24} 25 26 27function resimboyut_duzenle(selector){ 28 if(selector == '' || selector == undefined) 29 var selector = '.urunler .resim A IMG'; 30 31 $(selector).each(function(){ 32 var _height = parseInt($(this).innerHeight()); 33 34 if(_height == 0){//chrome için 35 $(this).load(function(){ 36 var _height = parseInt($(this).innerHeight()); 37 38 __resimBoyutlandir(this, _height); 39 }); 40 } 41 else{ 42 __resimBoyutlandir(this, _height); 43 } 44 }); 45}//end function resimboyut_duzenle() 46 47function __resimBoyutlandir(Obj,_height){ 48 var _width = parseInt($(Obj).innerWidth()); 49 var _src = $(Obj).attr('src'); 50 51 if(_height > 120){ 52 _width = parseInt(_width*(120/_height)) + ''; 53 _height = '120'; 54 55 //alert(_height); 56 } 57 58 $(Obj).css({'width':_width + 'px', 'height:':_height+'px'}); 59 60 //var _parent = $(Obj).parent(); 61 62 //$(Obj).remove(); 63 //alert(_height); 64 //_parent.append('<img title="' +_src+ '" src="' +_src+ '" style="width:' +_width+ 'px; height:' +_height+ 'px;">'); 65}//end function __resimBoyutlandir() 66 67 68$(function(){//üst menünün linklerini düzenle 69 $('.prefilled_input').each(function(){ 70 var _val = $(this).val(); 71 72 $(this).focus(function(){ 73 if($(this).val() == _val){ 74 $(this).val(''); 75 //$(this).css({'color':'#000000'}); 76 } 77 }); 78 79 $(this).blur(function(){ 80 if($(this).val() == ''){ 81 $(this).val(_val); 82 //$(this).css({'color':'#777777'}); 83 } 84 }); 85 }); 86 87 88 $('#ustmenu_ana_cont ul li .__submenu li').each(function(){ 89 $(this).click(function(){ 90 document.location.href = $(this).children('a').attr('href'); 91 }); 92 }); 93 94 95 /** BEGIN: Ãrün KiÅisel Ãzellikleri Ayarla **/ 96 if($('.urun_kisozl_cont').size() == 1){ 97 var cid = $('.urun_kisozl_cont').attr('cid'); 98 99 $('.urun_kisozl_cont .bir_ozl').addClass('pasif').css('opacity',0.7).each(function(){ 100 for(i in stoklar){ 101 if(stoklar[i]['ozl'] == (cid + ':' + $(this).attr('rel')) && stoklar[i]['stok_sayisi'] != 0){ 102 $(this).removeClass('pasif').css('opacity',1); 103 } 104 } 105 }); 106 107 } 108 109 $('.urun_kisozl_cont').each(function(){ 110 var cid = $(this).attr('cid'); 111 var $_inp = $(this).children('.select_kisozl'); 112 var $_all = $(this).children('.bir_ozl'); 113 $_all.each(function(){ 114 $(this).click(function(){ 115 if(!$(this).hasClass('pasif')){ 116 $_inp.val($(this).attr('rel')); 117 118 $_all.removeClass('selected'); 119 $(this).addClass('selected'); 120 121 stokDurum_ayarla(); 122 } 123 }); 124 }); 125 }); 126 /** END: Ãrün KiÅisel Ãzellikleri Ayarla **/ 127 128 $('.__opac').css('opacity',0.8); 129 130 /** BEGIN: Ãrün Yüksekliklerini Ayarla **/ 131 132 133 $('.product-des').each(function(){ 134 var _max_prod_h = 0; 135 var $_all = $(this).children('.product-info'); 136 137 var _size = $_all.size(); 138 var _size_cntr = 0; 139 140 $_all.each(function(){ 141 var _img = new Image(); 142 143 $(_img).load(function(){ 144 _size_cntr++; 145 146 if(_size_cntr == _size){ 147 $_all.each(function(){ 148 if($(this).find('.__resim img').outerHeight() > _max_prod_h){ 149 _max_prod_h = $(this).find('.__resim img').outerHeight(); 150 } 151 }); 152 153 $_all.each(function(){ 154 __fark = _max_prod_h - $(this).find('.__resim img').outerHeight(); 155 156 _img_paddingTop = Math.floor((__fark)/2); 157 158 if(_img_paddingTop > 0){ 159 $(this).find('.__resim').css({'padding-top':(_img_paddingTop + 'px'), 'padding-bottom':((__fark - _img_paddingTop) + 'px')}); 160 } 161 162 //$(this).find('._stok_yok').css('margin-top', (_max_prod_h - $(this).find('._stok_yok').outerHeight()) + 'px'); 163 }); 164 } 165 }).attr('src', $(this).find('.__resim img').attr('src')); 166 167 }); 168 169 170 }); 171 172 $('.product-des').each(function(){ 173 var _max_prod_h = 0; 174 var $_all = $(this).children('.product-info'); 175 176 var _size = $_all.size(); 177 var _size_cntr = 0; 178 179 $_all.each(function(){ 180 var _img = new Image(); 181 182 if($(this).children('h2').innerHeight() > _max_prod_h){ 183 _max_prod_h = $(this).children('h2').innerHeight(); 184 } 185 186 }); 187 188 $_all.each(function(){ 189 $(this).find('h2').css({'height':(_max_prod_h + 'px')}); 190 }); 191 192 193 }); 194 195 $('.urun_kategorileri .TR').each(function(){ 196 var _max_prod_h = 0; 197 var $_all = $(this).children('.TD'); 198 199 var _size = $_all.size(); 200 var _size_cntr = 0; 201 202 $_all.each(function(){ 203 var _img = new Image(); 204 205 $(_img).load(function(){ 206 _size_cntr++; 207 208 if(_size_cntr == _size){ 209 $_all.each(function(){ 210 if($(this).find('.__resim img').outerHeight() > _max_prod_h){ 211 _max_prod_h = $(this).find('.__resim img').outerHeight(); 212 } 213 }); 214 215 $_all.each(function(){ 216 __fark = _max_prod_h - $(this).find('.__resim img').outerHeight(); 217 218 _img_paddingTop = Math.floor((__fark)/2); 219 220 if(_img_paddingTop > 0){ 221 $(this).find('.__resim').css({'padding-top':(_img_paddingTop + 'px'), 'padding-bottom':((__fark - _img_paddingTop) + 'px')}); 222 } 223 224 //$(this).find('._stok_yok').css('margin-top', (_max_prod_h - $(this).find('._stok_yok').outerHeight()) + 'px'); 225 }); 226 } 227 }).attr('src', $(this).find('.__resim img').attr('src')); 228 229 }); 230 231 232 }); 233 /** END: Ãrün Yüksekliklerini Ayarla **/ 234 235});
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.