PageSourceSearch

https://store.sandiegomarine.com/inet/styles/sdm/js/_blueberry1589910793679.min.js

js sandiegomarine.com collected 2026-10-09 05:12:04 UTC 6,312 bytes, 143 lines download raw bytes

1var session_flyout_id = '';
2
3$(document).ready(function() {
4
5    $('#style_blueberry_offcanvas_custom_links').html($('#style_blueberry_top_menu').html()); //to keep header menu content to side menu for hamburger offcanvas
6    $('#refine_filters_menu').html($('.blueberry_refine_search_menuboxes').html());
7    $('.style_blueberry_mobile_social_links').html($('.style_blueberry_social_links').html());
8
9    //to display offcanvas for logged in and/or out session
10    $(".blueberry_header_account_icon, .blueberry_header_store_icon, .style_blueberry_language_selection_mobile").click( function () {
11
12        if ( user_logged_in ) {
13            session_flyout_id = 'logged_in_session_flyout';
14        } else {
15            session_flyout_id = 'logged_out_session_flyout';
16        }
17        $("#"+session_flyout_id).addClass('style_blueberry_session_flyout_display');
18        $('#offcanvas_overlay, .style_blueberry_session_flyout_close').show();
19        $('html').css('overflow','hidden');
20    });
21
22    $('#dealer_pricing_modal').on('hidden.bs.modal', function() { //if appleb will get shipped to iNet 5.0, reload the page in appleb too
23        if ( price_mode_changed ) { //if pricing mode is changed
24            location.reload(true);
25        } else {
26            closeFlyout();
27        }
28    });
29
30});
31
32function toggle_off_canvas_content(flyout_id, flyout_class) { //offcanvas for mobile devices onclick of hamburger and refine filter
33
34    if (flyout_id == "offcanvas_refine_flyout" ) { //run this condition only for mobile devices
35        $('.blueberry_refine_search_menuboxes').html(""); //empty the refine menuboxes of main menu for mobile devices
36    }
37
38    session_flyout_id = flyout_id;
39    $("#" + flyout_id).addClass(flyout_class);
40    $('#offcanvas_overlay, .style_blueberry_hamburger_flyout_close').show();
41    $('html').css("overflow","hidden");
42}
43
44
45/*to close offcanvas onclick of close button or outside the offcanvas*/
46function closeFlyout() {
47
48    if ( session_flyout_id == 'offcanvas_refine_flyout') {
49        $('.blueberry_refine_search_menuboxes').html($('#refine_filters_menu').html()); //refill back the refine menuboxes to main menu
50
51    }
52    if ( session_flyout_id == 'off_canvas_hamburger_flyout') {
53        backto_main_menu();
54    }
55    $("#" + session_flyout_id).removeClass('style_blueberry_off_canvas_display style_blueberry_session_flyout_display');
56    $('#offcanvas_overlay').hide();
57    $('.style_blueberry_hamburger_flyout_close, .style_blueberry_session_flyout_close').hide();
58    $('html').css("overflow","auto");
59}
60
61function select_store() { //Displays the store name options on click of store 'change'
62    if (disable_ui) {
63        closeFlyout();
64        preventDefault();
65    }
66    $('.store_change_status_indicator').html($('#session_flyout_status_indicator').html());
67    switch_url = sagro_base_url + "/storefront/switch.php?mode=get_store_options";
68    $.get(switch_url, function(html) {
69        $('.store_name_options').html(html);
70        $('.change_store_link').html($('.offcanvas_store_options').html());
71        $('.store_change_status_indicator').html('');
72    });
73}
74
75function set_active_store() { //sets the active store for the users session
76    switch_url = sagro_base_url + "/storefront/switch.php";
77    serialized_data = $('#switch_store_form').serialize();
78
79    $(".price_mode_selection, .my_profile_link, .user_info, .logout_link, .user_information_wrapper, .language_selection_wrapper, #offcanvas_login ").hide();
80    $('.store_name_options').prop('disabled', true);
81    $('#session_flyout_status_indicator').show();
82    $('.session_flyout_status_message').text("Setting Store ... Please Wait..");
83    $.post(
84            switch_url,
85            serialized_data, function (data) {
86               location.reload(true);
87            });
88}
89
90function selectJob() { //Displays the Job options on click of Job 'change'
91    if (disable_ui) {
92        closeFlyout();
93        preventDefault();
94    }
95    $('#session_flyout_status_indicator').show();
96     switch_url = sagro_base_url + "/storefront/switch.php?mode=get_shipto_options";
97     $.get(switch_url, function(html) {
98         $('.change_job_link').html($('#offcanvas_shipto_options').html());
99        $('.offcanvas_shipto_options').html(html);
100        $('#session_flyout_status_indicator').hide();
101     });
102}
103
104function changeJob() { //sets the changed job name
105    switch_url = sagro_base_url + "/storefront/switch.php";
106    form_data = $('#offcanvas_switch_job_form').serialize();
107    $(".price_mode_selection, .my_profile_link, .user_info, .logout_link, .language_selection_wrapper, .store_change_wrapper").hide();
108    $('.offcanvas_shipto_options').prop('disabled', true);
109    $('#session_flyout_status_indicator').show();
110    $('.session_flyout_status_message').text("Changing Job ... Please Wait..");
111    $.post( switch_url, form_data, function(data) {
112        location.reload(true);
113    });
114}
115
116function select_language() {
117    $('.change_language').html($('.offcanvas_language_options').html());
118}
119
120function change_language() {
121    $(".language_options").prop("disabled", true);
122    $(".price_mode_selection, .my_profile_link, .user_info, .logout_link, .store_change_wrapper, .user_information_wrapper,  #offcanvas_login").hide();
123    $('#session_flyout_status_indicator').show();
124    $('.session_flyout_status_message').text("Changing Language ... Please Wait..");
125    var lang = $(".language_options option:selected").val();
126    location.href = sagro_base_url + "/util/set_language.php?language="+lang;
127}
128
129function toggle_menu_content(menubox_id) {
130
131    $('.style_blueberry_offcanvas_sub_menu').html($("#"+menubox_id).html());
132    $('.style_blueberry_offcanvas_sub_menu > div#'+menubox_id +'_style_blueberry_content').show(); //this is mainly intended to hide the content of additional levels [class->fineline]
133    $('.style_blueberry_offcanvas_sub_menu > #title_bar_'+menubox_id).prop("onclick", null);
134    $('.style_blueberry_offcanvas_main_menu').hide();
135    $('div#backto_main_menu_'+menubox_id).show();
136}
137
138function backto_main_menu(menubox_id) {
139    $('.style_blueberry_offcanvas_sub_menu > .style_blueberry_content').hide();
140    $('.style_blueberry_offcanvas_sub_menu').html('');
141    $('.style_blueberry_offcanvas_main_menu').show();
142    $('.style_blueberry_offcanvas_backto_main_menu').hide();
143}

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.