1function showAjaxList(pgnum) 2{ 3 $('#AjaxLoadData').html('<div class="text-center"><img id="loader-img" alt="" src="/pics/loading.gif" align="center" /></div>'); 4 5 $.ajax({ 6 type: "post", 7 url: $("#pg_url").val(), 8 //processData: false, 9 //contentType: false, 10 cache: false, 11 data: { gid: $('#categories').val(), page:pgnum, sw:$("#sw").val(), _token:$('#_token').val()}, 12 //data: { gid: $('#gro').val(), limit: $('#limited').val(), sval: sortval,stype:sorttype,pnum:pgnum,sw:$("#sword").val(),sch_type:$("#SchType_Val").val(),active_val:$("#acval").val()}, 13 success:function(data){ 14 $("#AjaxLoadData").html(data); 15 } 16 17 }); 18} 19function addLink() { 20 //Get the selected text and append the extra info 21 var selection = window.getSelection(), 22 pagelink = '<br /><br />Ø§ÙØ±Ø£ اÙÙ Ø²ÙØ¯ عÙÙ Ø§ÙØ±Ø§Ø¨Ø· : ' + document.location.href, 23 copytext = selection + pagelink, 24 newdiv = document.createElement('div'); 25 26 //hide the newly created container 27 newdiv.style.position = 'absolute'; 28 newdiv.style.left = '-99999px'; 29 30 //insert the container, fill it with the extended text, and define the new selection 31 document.body.appendChild(newdiv); 32 newdiv.innerHTML = copytext; 33 selection.selectAllChildren(newdiv); 34 35 window.setTimeout(function () { 36 document.body.removeChild(newdiv); 37 }, 100); 38} 39function shareThis(client,title) { 40 var title=title; 41 var url=document.location.href; 42 var encTitle = encodeURIComponent(title); 43 var newUrl; 44 45 switch(client){ 46 case 1: 47 newUrl="http://www.facebook.com/sharer.php?u="+url; 48 break; 49 case 2: 50 newUrl="http://twitter.com/home?status="+encTitle+"... "+url; 51 break; 52 case 3: 53 newUrl="http://www.google.com/bookmarks/mark?op=add&bkmk="+url+"&title="+encTitle; 54 break; 55 case 4: 56 newUrl="http://del.icio.us/post?url="+url+"&title="+title; 57 break; 58 case 5: 59 newUrl="http://digg.com/submit?url="+url; 60 break; 61 case 6: 62 newUrl="http://www.technorati.com/faves?add="+url; 63 break; 64 case 7: 65 newUrl="http://www.stumbleupon.com/submit?url="+url+"&title="+encTitle; 66 break; 67 case 8: 68 newUrl="http://reddit.com/submit?url="+url+"&title="+encTitle; 69 break; 70 case 9: 71 newUrl="http://www.mixx.com/submit?page_url="+url; 72 break; 73 case 10: 74 newUrl="whatsapp://send?text="+title+"-"+url; 75 break; 76 case 11: 77 newUrl="https://telegram.me/share/url?url="+url+"&text="+title; 78 break; 79 default: 80 newUrl=url; 81 } 82 window.open(newUrl); 83 84} 85 86function openprintwin(page) 87{ 88 window.open (page,"","width=750,height=900,left=50,scrollbars=1,resizable=0,addressbar=0,status=0,toolbar=0"); 89} 90//$( document ).ready(function() { 91 setTimeout('initFadeIn()', 3000); 92 function initFadeIn() { 93 $("#slide_loading").hide(); 94 95 $("#video-gallery-box").css({"visibility":"visible"}); 96 $("#properties-carousel").css({"visibility":"visible"}); 97 } 98 99//}); 100 $( document ).ready(function() { 101 $('.dropdown-ajax').on('click', 102 function(e) { 103 var mega_menu_li = $(this); 104 var mega_content = $(this).children(".mega-content"); 105 if(mega_menu_li.data('loaded') == 0) { 106 $.getJSON( mega_menu_li.data('url'), function( data ) { 107 var template = $('#' + mega_menu_li.data('template')).html(); 108 Mustache.parse(template); // optional, speeds up future uses 109 var rendered = Mustache.render(template, data); 110 mega_menu_li.data('loaded', 1); 111 mega_content.html(rendered); 112 }); 113 } 114 } 115 ); 116 if($.fn.mediaBoxes){ 117 jQuery('#grid').mediaBoxes({ 118 overlayEffect: 'direction-aware', 119 boxesToLoadStart: 10, 120 boxesToLoad: 8, 121 horizontalSpaceBetweenBoxes: 10, 122 verticalSpaceBetweenBoxes: 10 123 }); 124 } 125 // carousel
126 if($.fn.owlCarousel){ 127 $(".home-carousel").owlCarousel({ 128 autoPlay: 5000, 129 items : 3, 130 itemsDesktop: false, 131 direction: 'rtl', 132 stopOnHover: true 133 }); 134 135 var carousel_wrapper = $('#carousel-177'); 136 $.getJSON( carousel_wrapper.data('url'), function( data ) { 137 var template = $('#owl-items').html(); 138 Mustache.parse(template); // optional, speeds up future uses 139 var rendered = Mustache.render(template, data); 140 carousel_wrapper.html(rendered); 141 carousel_wrapper.addClass('main-carousel home-carousel owl-carousel owl-theme video-carousel'); 142 setTimeout(function() { 143 carousel_wrapper.owlCarousel({ 144 autoPlay: 5000, 145 items : 4, 146 itemsDesktop: false, 147 direction: 'rtl', 148 stopOnHover: true 149 }); 150 }, 100); 151 }); 152 var countVars = {"disqusShortname":"alwelayah"}; 153 154 155 156 $('#properties-carousel').owlCarousel({ 157 items:4, 158 loop:true, 159 navigation:false, 160 dots:false, 161 margin:30, 162 autoplay:true, 163 autoplayTimeout:3000, 164 direction:"rtl", 165 responsive:{ 166 170:{ 167 items:1 168 }, 169 500:{ 170 items:1 171 }, 172 678:{ 173 items:2 174 }, 175 768:{ 176 items:3 177 }, 178 960:{ 179 items:4 180 }, 181 1200:{ 182 item:8 183 } 184 } 185 }); 186 $('.adv-carousel').owlCarousel({ 187 items:1, 188 loop:true, 189 navigation:true, 190 pagination: false, 191 dots:false, 192 margin:30, 193 autoPlay:true, 194 autoplayTimeout:3000, 195 direction:"rtl", 196 197 }); 198 $('#related-article').owlCarousel({ 199 items:6, 200 loop:false, 201 navigation:false, 202 dots:true, 203 margin:30, 204 direction:"rtl", 205 responsive:{ 206 170:{ 207 items:2 208 }, 209 500:{ 210 items:3 211 }, 212 678:{ 213 items:4 214 }, 215 768:{ 216 items:5 217 }, 218 960:{ 219 items:6 220 }, 221 1200:{ 222 item:6 223 } 224 } 225 }); 226 } 227 228 // RoyalSlider 229 if($.fn.royalSlider){ 230 $('#video-gallery').royalSlider({ 231 arrowsNav: true, 232 fadeinLoadedSlide: true, 233 controlNavigationSpacing: 0, 234 controlNavigation: 'thumbnails', 235 thumbs: { 236 autoCenter: false, 237 fitInViewport: true, 238 orientation: 'vertical', 239 spacing: 0, 240 paddingBottom: 0 241 }, 242 keyboardNavEnabled: true, 243 imageScaleMode: 'fill', 244 imageAlignCenter:true, 245 slidesSpacing: 0, 246 loop: false, 247 loopRewind: true, 248 numImagesToPreload: 4, 249 video: { 250 autoHideArrows:true, 251 autoHideControlNav:false, 252 autoHideBlocks: true 253 }, 254 autoScaleSlider: true, 255 autoPlay: { 256 // autoplay options go gere 257 enabled: true, 258 pauseOnHover: true, 259 delay: 3000 260 }, 261 autoScaleSliderWidth: 960, 262 autoScaleSliderHeight: 450, 263 /* size of all images http://help.dimsemenov.com/kb/royalslider-jquery-plugin-faq/adding-width-and-height-properties-to-images */ 264 imgWidth: 640, 265 imgHeight: 360 266 }); 267 var slider = $("#video-gallery").data('royalSlider'); 268 $('.rsNavItem').mouseover(function() { 269 slider.goTo($(this).index()); 270 }); 271 272 $('#video-archive').royalSlider({ 273 arrowsNav: true, 274 fadeinLoadedSlide: true, 275 controlNavigationSpacing: 0, 276 controlNavigation: 'thumbnails', 277 thumbs: { 278 autoCenter: false, 279 fitInViewport: true, 280 orientation: 'vertical', 281 spacing: 0, 282 paddingBottom: 0 283 }, 284 keyboardNavEnabled: true, 285 imageScaleMode: 'fill', 286 imageAlignCenter:true, 287 slidesSpacing: 0, 288 loop: false, 289 loopRewind: true, 290 numImagesToPreload: 4, 291 video: { 292 autoHideArrows:true, 293 autoHideControlNav:false, 294 autoHideBlocks: true 295 }, 296 autoScaleSlider: true, 297 autoPlay: { 298 // autoplay options go gere 299 enabled: true, 300 pauseOnHover: true, 301 delay: 3000 302 }, 303 autoScaleSliderWidth: 960, 304 autoScaleSliderHeight: 450, 305 /* size of all images http://help.dimsemenov.com/kb/royalslider-jquery-plugin-faq/adding-width-and-height-properties-to-images */ 306 imgWidth: 640, 307 imgHeight: 360 308 }); 309 var slider = $("#video-archive").data('royalSlider'); 310
311 $('.rsNavItem').mouseover(function() { 312 slider.goTo($(this).index()); 313 }); 314 } 315 /*mcustum scrollbar*/ 316 317 if($.fn.mCustomScrollbar){ 318 if($(window).width() > 991) { 319 $("#live-news").mCustomScrollbar({ 320 theme:"rounded-dark", 321 //scrollbarPosition:"outside" 322 }); 323 } else { 324 $("#live-news").css({overflowY: 'scroll'}); 325 } 326 if($(window).width() > 991) { 327 $("#live-news2").mCustomScrollbar({ 328 theme:"rounded-dark", 329 //scrollbarPosition:"outside" 330 }); 331 } else { 332 $("#live-news2").css({overflowY: 'scroll'}); 333 } 334 if($(window).width() < 992) { 335 var news_container_parent = $(".news-container").parents(".box-wrapper"); 336 news_container_parent.clone().appendTo(".news-container-clone"); 337 news_container_parent.hide(); 338 } 339 } 340 $('#main-menu ul').superfish({ 341 hoverClass: 'over', 342 delay: 400, 343 speed: 100, 344 speedOut: 0, 345 disableHI: true 346 }); 347 var mailing_list_form = $("#mailing_list_form"); 348 var ret_area = mailing_list_form.find('.ret-area'); 349 mailing_list_form.submit(function() { 350 $.ajax({ 351 type: "POST", 352 url: mailing_list_form.data('url'), 353 beforeSend: function( xhr ) { 354 ret_area.html("<center><img src='images/icon/loader-blue.gif' /></center>"); 355 }, 356 dataType: 'json', 357 data: mailing_list_form.serialize(), 358 success: function (data) { 359 // Inserting html into the result div on success 360 ret_area.html('<div class="alert alert-'+ data.code +'">' + data.message + '</div>'); 361 } 362 }); 363 return false; 364 }); 365 366 367 //------ newsticker------- 368 if($('#newsticker_demo_reveal').length>0) 369 { 370 var newsticker_container = $('#newsticker_demo_reveal'); 371 newsticker_container.newsticker( { 372 'style' : 'scroll', 373 'tickerTitle' : 'آخر Ø§ÙØ£Ø®Ø¨Ø§Ø±', 374 'letterRevealSpeed' : 70, 375 'transitionSpeed' : 2000, 376 'pauseOnHover' : true, 377 'autoStart' : true, 378 'showControls' : false 379 }); 380 newsticker_container.css({height: 'auto'}); 381 } 382 383 // fixed header ----- 384 function makeFixedHeader(){ 385 var element = jQuery("header.willfix"); 386 if(element.hasClass("makefixed"))return false; 387 element.css("height", element.children(".navbar").height()); 388 element.addClass("makefixed"); 389 element.children("div").addClass("animated bounceInDown"); 390 } 391 392 function removeFixedHeader(){ 393 var element = jQuery("header.willfix"); 394 if(!element.hasClass("makefixed"))return false; 395 element.css("height", "auto"); 396 element.removeClass("makefixed"); 397 element.children("div").removeClass("animated bounceInDown"); 398 } 399 400 jQuery(window).resize(function() { 401 var htop = (parseInt(jQuery("header").offset().top+100)+parseInt(jQuery("header").css("padding-top"))); 402 if(jQuery(window).scrollTop() >= htop){ 403 makeFixedHeader(); 404 }else{ 405 removeFixedHeader(); 406 } 407 jQuery("header.makefixed > .navbar").css("left", "50%").css("margin-left", -(parseInt(jQuery("header.makefixed > .navbar").css("width"))/2)); 408 }); 409 410 jQuery(window).scroll(function() { 411 var htop = (parseInt(jQuery("header").offset().top+100)+parseInt(jQuery("header").css("padding-top"))); 412 if(jQuery(window).scrollTop() >= htop){ 413 makeFixedHeader(); 414 jQuery("header.makefixed > .navbar").css("left", "50%").css("margin-left", -(parseInt(jQuery("header.makefixed > .navbar").css("width"))/2)); 415 }else{ 416 removeFixedHeader(); 417 jQuery("header > .navbar").css("left", "0").css("margin-left", "0"); 418 } 419 420 }); 421 422 423 $("#fader").on("change",function () { 424 $('#content p').css("font-size", $(this).val() + "px"); 425 $('#content strong').css("font-size", $(this).val() + "px"); 426 $('#content p strong').css("font-size", $(this).val() + "px"); 427 });
428 function fontchanger (){ 429 $('#incfont').click(function(){ 430 var cursize = $('#content').css('font-size'); 431 $('#content').css('font-size',function(i, value){ 432 return parseInt(value) +1; 433 }); 434 $('#fader').val(parseInt($('#fader').val()) +1); 435 $('#fader').trigger('change'); 436 if(cursize >= "30px"){ 437 $('#content').css('font-size',cursize); 438 $('#content strong').css('font-size',cursize); 439 $('#content p').css('font-size',cursize); 440 } 441 }); 442 $('#decfont').click(function(){ 443 var cursize = $('#content').css('font-size'); 444 $('#content').css('font-size',function(i, value){ 445 return parseInt(value) -1; 446 }); 447 $('#fader').val(parseInt($('#fader').val()) -1); 448 $('#fader').trigger('change'); 449 if(cursize <= "12px"){ 450 $('#content').css('font-size',cursize); 451 $('#content strong').css('font-size',cursize); 452 $('#content p').css('font-size',cursize); 453 454 } 455 }); 456 457} 458fontchanger(); 459 460});
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.