PageSourceSearch

https://amrutphilately.com/modules/fieldthemeoptions/views/templates/front/colortool/js/fieldcolortool.js

js amrutphilately.com collected 2026-10-02 23:20:02 UTC 12,724 bytes, 26 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name))||self[name];};if(!self.__WB_pmw){self.__WB_pmw=function(obj){this.__WB_source=obj;return this;}}{
2let window = _____WB$wombat$assign$function_____("window");
3let self = _____WB$wombat$assign$function_____("self");
4let document = _____WB$wombat$assign$function_____("document");
5let location = _____WB$wombat$assign$function_____("location");
6let top = _____WB$wombat$assign$function_____("top");
7let parent = _____WB$wombat$assign$function_____("parent");
8let frames = _____WB$wombat$assign$function_____("frames");
9let opens = _____WB$wombat$assign$function_____("opens");
10$(document).ready(function(){function add_backgroundcolor(bgcolor){$('<style type="text/css"> .new, .left-block .item-countdown .bg_tranp, ul.product_list.list > li .product-container .center-block .button-container a, #blockfieldblogstabs .blog_container a.see-more, .top-menu, ul.tab_cates li, .tags_block .block_content a, .tags_block .block_content a:hover, #footer .block_content .btn, .footer-container .footer-top #social_block ul li, #footer .footer-center, .cart_block .cart-buttons a#button_order_cart span, .cart_block .cart-buttons a#button_order_cart:hover span, .field_megamenu div.popup div.menu-bottom a, #field_megamenu .field_menu .parentMenu a:hover span.safe-off, #field_megamenu .field_menu.active .parentMenu a span.safe-off, #field_megamenu .field_menu.act .parentMenu a span.safe-off, .top-pagination-content ul.pagination li > a span, .top-pagination-content ul.pagination li > span span, .bottom-pagination-content ul.pagination li > a span, .bottom-pagination-content ul.pagination li > span span, .top-pagination-content ul.pagination li > a:hover span,.bottom-pagination-content ul.pagination li > a:hover span, .button.button-medium.bt_compare, #wishlist_block a.btn, .home-banner .img2 span.ontop, .home-banner .img6 span.ontop, #search_block_top .btn.button-search, #languages_block_top ul#first-languages li, #currencies_block_top ul#first-currencies li, .box-info-product .exclusive, .idTabs a, .button.button-small, .button.button-medium, .button.button-medium.exclusive, #layer_cart .layer_cart_cart .button-container .btn, .box-info-product .exclusive, .simpleblog-single.with-cover .cover .info h1 .blog-post-likes, #field-mobilemenu, .button.lnk_view span, .cart_navigation .button-exclusive, #blockfieldblogstabs .blog-info.bg_tranp, .comparison_product_infos .button.ajax_add_to_cart_button span, .left-block:hover a.product_img_link span.img_root:before { background-color:#'+bgcolor+'}</style>').appendTo('head');$('<style type="text/css"> #field_megamenu .field_menu .parentMenu a:hover span.safe-off:before, #field_megamenu .field_menu.active .parentMenu a span.safe-off:before, #field_megamenu .field_menu.act .parentMenu a span.safe-off:before, .content_sortPagiBar .display li.selected i, .content_sortPagiBar .display_m li.selected i { color:#'+bgcolor+'}</style>').appendTo('head');$('<style type="text/css"> @media only screen and (max-width: 1200px) { .shopping_cart > a:first-child { background-color:#'+bgcolor+' !important }}</style>').appendTo('head');$('<style type="text/css"> .back-top a:hover, .field-demo-wrap .control.inactive { background-color:#'+bgcolor+' !important}</style>').appendTo('head');}
11function add_hovercolor(hcolor){$('<style type="text/css"> .sale, #footer .footer-center li .bg_footer.bg_footer_hover .bg_circle, .field-demo-wrap .control.active , .sticky-fixed-top #search_block_top:hover .btn.button-search, .field-special-product .content_price span, .price-percent-reduction, .sticky-fixed-top #search_block_top .btn.button-search:hover, .field_megamenu div.field_menu .parentMenu a:hover, .field_megamenu div.field_menu .parentMenu span.block-title:hover, .field_megamenu .field_menu .parentMenu a.act, .field_megamenu .field_menu.act .parentMenu a, .field_megamenu .field_menu.active .parentMenu a, .field_megamenu div.popup div.menu-bottom a:hover, ul.tab_cates li.active, ul.tab_cates li:hover, .tags_block .block_content a:hover, #blockfieldblogstabs .blog_container a.see-more:hover, #footer .block_content .btn:hover, .shopping_cart > a:first-child:hover, .cart_block .cart-buttons a#button_order_cart:hover span, #field_megamenu .field_menu .parentMenu span.safe-off, .back-top a, .top-pagination-content ul.pagination li.active > span span, .bottom-pagination-content ul.pagination li.active > span span, .back-top a:hover, .top-pagination-content ul.pagination li >
11 a span, .top-pagination-content ul.pagination li > span span, .bottom-pagination-content ul.pagination li > a span, .bottom-pagination-content ul.pagination li > span span, .top-pagination-content ul.pagination li > a:hover span,.bottom-pagination-content ul.pagination li > a:hover span, .button.button-medium.bt_compare:hover, #wishlist_block a.btn:hover, ul.product_list.list > li .product-container .center-block .button-container a:hover, .tp-caption a.shop-now:hover, .tp-caption a.shop-now2:hover, .tp-caption a.shop-now3:hover, .comparison_product_infos .button.ajax_add_to_cart_button:hover span, .home-banner .img2, .home-banner .img6, .stb-conten .icon-image, #search_block_top .btn.button-search:hover, #languages_block_top ul#first-languages li:hover, #currencies_block_top ul#first-currencies li:hover, .box-info-product .exclusive:hover, #product #more_info_tabs li a.selected, .idTabs a:hover, .button.lnk_view span:hover, .button.button-small:hover, .cart_navigation .button-exclusive:hover, .button.button-medium:hover, .simpleblog-single.with-cover .cover .info h1 .blog-post-likes:hover, .button.button-medium.exclusive:hover, #layer_cart .layer_cart_cart .button-container .btn:hover, .box-info-product .exclusive:hover, #blockfieldblogstabs .blog_container:hover .blog-info.bg_tranp, .field_megamenu div.field_menu_link .parentMenu a:hover, .field_megamenu div.field_menu_link .parentMenu a.act, .left-block .button-container a:hover, .comments_advices a:hover { background-color:#'+hcolor+'}</style>').appendTo('head');$('<style type="text/css"> #field_megamenu .field_menu .parentMenu span.safe-off:before, .pagination > li:last-child > a, .pagination > li:last-child > span, #my-account ul.myaccount-link-list li a i, #footer .footer-center .myaccount li a:hover, #footer .footer-center #block_various_links_footer li a:hover, #footer .footer-center .why-buy li a:hover, .field_megamenu div.popup div.menu-bottom h3, #header .row #header_links li:hover a, .nav #languages_block_top:hover p, .nav #currencies_block_top:hover p, #header .row #header_links li:hover i,.field-bestsellers-product .product-name:hover, .field-bestsellers-product a.btn:hover, .right-block h5 a:hover, .field_megamenu div.popup a.level3, .custom-col a, .custom-col3 h4.title_block,.price.product-price, #blockfieldblogstabs h2 a:hover, #categories_block_left li span.grower:hover + a, #categories_block_left li a:hover, #categories_block_left li a.selected, .breadcrumb .navigation_page,#layered_block_left div > form > div > div label a:hover, ul.product_list .product-name:hover, a.learn-more, .pb-center-column #product_reference span, .pb-center-column p#product_condition span,.box-info-product p, .special-price, #usefull_link_block li a:hover, .box-wishlist-box a#wishlist_button:hover, .fieldproductcategory p.product_name a:hover, .price , #layer_cart .layer_cart_cart .layer_cart_row span,#layer_cart .layer_cart_product .layer_cart_product_info #layer_cart_product_price, .price.special-price, .cart_total .price, tfoot .price, tfoot .price span, .cart_unit .price, #header .cart_block a:hover, #header .cart_block .price, .ac_results li strong,#header .cart_block .product-atributes a:hover,.field_megamenu div.popup a.level4:hover, #field_menu_cms div.popup .itemSubMenu.level3 a:hover, #field_menu_cms div.popup .itemSubMenu.level3:hover:before, .content_sortPagiBar .display li a:hover i, .content_sortPagiBar .display_m li a:hover i { color:#'+hcolor+'}</style>').appendTo('head');$('<style type="text/css"> @media only screen and (max-width: 1200px) { .shopping_cart > a:first-child:hover { background-color:#'+hcolor+' !important }}</style>').appendTo('head');$('<style type="text/css"> .tp-caption a.shop-now:hover, .tp-caption a.shop-now2:hover, .tp-caption a.shop-now3:hover, .left-block .button-container a:hover { border-color:#'+hcolor+'}</style>').appendTo('head');}
12$('.control').click(function(){if($(this).hasClass('inactive')){$(this).removeClass('inactive');$(this).addClass('active');if(LANG_RTL=='1'){$('.field-demo-wrap').animate({right:'0'},500);}else{$('.field-demo-wrap').animate({left:'0'},500);}
13$('.field-demo-wrap').css({'box-shadow':'0 0 10px #adadad','background':'#fff'});$('.field-demo-option').animate({'opacity':'1'},500);$('.field-demo-title').animate({'opacity':'1'},500);}else{$(this).addClass('inactive');if(LANG_RTL=='1'){$('.field-demo-wrap').animate({right:'-210px'},500);}else{$('.field-demo-wrap').animate({left:'-210px'},500);}
14$('.field-demo-wrap').css({'box-shadow':'none','background':'transparent'});$('.field-demo-option').animate({'opacity':'0'},500);$('.field-demo-title').animate({'opacity':'0'},500);}});$('#backgroundColor, #hoverColor').each(function(){var $el=$(this);var date=new Date();date.setTime(date.getTime()+(1440*60*1000));$el.ColorPicker({color:'#555555',onChange:function(hsb,hex,rgb){$el.find('div').css('backgroundColor','#'+hex);switch($el.attr("id")){case'backgroundColor':add_backgroundcolor(hex);$.cookie('background_color_cookie',hex,{expires:date});break;case'hoverColor':add_hovercolor(hex);$.cookie('hover_color_cookie',hex,{expires:date});break;}}});});var date=new Date();date.setTime(date.getTime()+(1440*60*1000));if(FIELD_PANELTOOL!=1){$.cookie('background_color_cookie','');$.cookie('hover_color_cookie','');}
15if($.cookie('background_color_cookie')&&$.cookie('hover_color_cookie')){add_backgroundcolor($.cookie('background_color_cookie'));add_hovercolor($.cookie('hover_color_cookie'));}else if(FIELD_SKIN_DEFAULT!="default"){if(FIELD_SKIN_DEFAULT=="custom"){$.cookie('background_color_cookie',FIELD_COLOR1);$.cookie('hover_color_cookie',FIELD_COLOR2);}
16else{$.cookie('background_color_cookie',FIELD_SKIN_DEFAULT_1);$.cookie('hover_color_cookie',FIELD_SKIN_DEFAULT_2);}
17add_backgroundcolor($.cookie('background_color_cookie'));add_hovercolor($.cookie('hover_color_cookie'));}
18var styleTextbox='<style id="setconfig">#page{ width: 1200px; box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2); margin: 0 auto;} @media only screen and (min-width: 992px) and (max-width: 1200px) {	#page{	width: 980px;}}@media only screen and (max-width: 991px){ #page{ margin:0 auto;border-radius:0;box-shadow: 0 0 0 #fff;}}@media only screen and (min-width: 768px) and (max-width: 991px) {	#page { width: 768px;}}@media only screen and (max-width: 767px){ #page { width:100%;}}</style>';if($.cookie('mode_css')){if($.cookie('mode_css')=='1200px')
19{$('#page').css('width','');$('#page').addClass('page_box');$('body').append(styleTextbox);$('input[name=mode_css][value=box]').attr("checked",true);}
20else
21{$('body style#setconfig').remove();$('#page').removeClass('page_box');$("#page").css('width',$.cookie('mode_css'));$('input[name=mode_css][value=wide]').attr("checked",true);}}
22else{if(FIELD_MODE=='1'){$('#page').css('width','');$('#page').addClass('page_box');$('body').append(styleTextbox);$('input[name=mode_css][value=box]').attr("checked",true);}
23else{$('body style#setconfig').remove();$('#page').removeClass('page_box');$("#page").css('width',$.cookie('mode_css'));$('input[name=mode_css][value=wide]').attr("checked",true);}}
24$('input[name=mode_css][value=box]').click(function(){$('#page').css('width','');$('body').append(styleTextbox);$('#page').addClass('page_box');$.cookie('mode_css','1200px');$.cookie('mode_css_input','box');});$('input[name=mode_css][value=wide]').click(function(){$('#page').css('width','100%');$('body style#setconfig').remove();$('#page').removeClass('page_box');$.cookie('mode_css','100%');$.cookie('mode_css_input','wide');});$('.cl-td-layout a').click(function(){var id_color=this.id;if(id_color!="default"){$.cookie('background_color_cookie',id_color.substring(0,6));$.cookie('hover_color_cookie',id_color.substring(7,13));add_backgroundcolor($.cookie('background_color_cookie'));add_hovercolor($.cookie('hover_color_cookie'));}
25else{$.cookie('background_color_cookie','');$.cookie('hover_color_cookie','');}});$('.cl-reset').click(function(){$.cookie('background_color_cookie','');$.cookie('hover_color_cookie','');$.cookie('mode_css','');$.cookie('mode_css_input','');$('#page').removeClass('page_box');location.reload();});});
26}

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.