PageSourceSearch

https://viabrasilrestaurant.com/assets/23252bc8_preset.js

js viabrasilrestaurant.com collected 2026-10-04 01:56:52 UTC 3,271 bytes, 103 lines download raw bytes

1var _____WB$wombat$assign$function_____=function(name){return (globalThis._wb_wombat && globalThis._wb_wombat.local_init && globalThis._wb_wombat.local_init(name))||globalThis[name];};if(!globalThis.__WB_pmw){globalThis.__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 opener = _____WB$wombat$assign$function_____("opener");
10
11/**!
12 *
13 *  Document   : preset.js 
14 * @author    UY System Limited.
15 * @copyright Copyright 2015 Uysystem Limited.
16 *
17 */
18
19
20var templateOptions = function() {
21
22    var colorList = $('.layout');
23    var themeLink = $('#layout-link');
24    var theme;
25    var temp;
26
27    if (themeLink.length) {
28        theme = themeLink.attr('href');
29
30        $('li', colorList).removeClass('active');
31        $('a[data-theme="' + theme + '"]', colorList).parent('li').addClass('active');
32    }
33
34    $('a', colorList).on("click",function(e){
35        // Get theme name
36        temp = $(this).data('theme');
37        theme="css/"+temp+".css";
38        
39
40        $('li', colorList).removeClass('active');
41        $(this).parent('li').addClass('active');
42
43        if (theme === 'default') {
44            if (themeLink.length) {
45                themeLink.remove();
46                themeLink = $('#layout-link');
47                
48            }
49        } else {
50            if (themeLink.length) {
51                themeLink.attr('href', theme);
52            } else {
53                $('link[href="css/responsive.css"]').before('<link id="layout-link" rel="stylesheet" href  ="' + theme + '">');
54                themeLink = $('#layout-link');
55            }
56        }
57    });
58
59
60    var colorList = $('.color');
61    var colorthemeLink = $('#color-link');
62    var theme;
63    var temp;
64    var logo;
65
66    if (colorthemeLink.length) {
67        theme = colorthemeLink.attr('href');
68
69        $('li', colorList).removeClass('active');
70        $('a[data-theme="' + theme + '"]', colorList).parent('li').addClass('active');
71    }
72
73    $('a', colorList).on("click",function(e){
74        // Get theme name
75        temp = $(this).data('theme');
76        theme="css/"+temp+".css";
77        logo="img/logo-"+temp+".png";
78
79        $('li', colorList).removeClass('active');
80        $(this).parent('li').addClass('active');
81
82        if (theme === 'default') {
83            if (colorthemeLink.length) {
84                colorthemeLink.remove();
85                colorthemeLink = $('#color-link');
86                
87            }
88        } else {
89            if (colorthemeLink.length) {
90                colorthemeLink.attr('href', theme);
91                $("#logo").attr("src", logo);
92            } else {
93                $('link[href="css/responsive.css"]').before('<link id="color-link" rel="stylesheet" href  ="' + theme + '">');
94                colorthemeLink = $('#color-link');
95                $("#logo").attr("src", logo);
96            }
97        }
98    });
99
100};
101
102}
103

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.