").appendTo($(this).find(".ui-articles")); } }); }, "GlobalIcons": function() { $(".gb-global-icons").creativeIcons({ "iconNum" : "8", "defaultIconSrc": "", "icons" : [ { "image": "Communication/15.png", "showText": true, "text": "E-ALERTS", "url": "https://www.bcscschools.org/site/default.aspx?PageType=3&DomainID=4&ModuleInstanceID=32&ViewID=6446EE88-D30C-497E-9316-3F8874B3E108&RenderLoc=0&FlexDataID=10&PageID=1", "target": "_self" }, { "image": "People/34.png", "showText": true, "text": "E-LEARNING", "url": "https://sites.google.com/bcsc.k12.in.us/bcscelearning/home", "target": "_blank" }, { "image": "Student Program/19.png", "showText": true, "text": "BUS ROUTES", "url": "https://www.bcscschools.org/site/Default.aspx?PageID=513", "target": "_self" }, { "image": "Student Program/3.png", "showText": true, "text": "MY SCHOOL BUCKS", "url": "https://www.myschoolbucks.com/ver2/login/getmain?requestAction=home", "target": "_blank" }, { "image": "People/53.png", "showText": true, "text": "EMPLOYMENT", "url": "https://www.bcscschools.org/domain/55", "target": "_self" }, { "image": "Communication/18.png", "showText": true, "text": "GMAIL", "url": "https://www.gmail.com", "target": "_blank" }, { "image": "Education Portal/6.png", "showText": true, "text": "POWERSCHOOL", "url": "https://powerschool.bcsc.k12.in.us/public/home.html", "target": "_blank" }, { "image": "Classroom/59.png", "showText": true, "text": "ITSLEARNING", "url": "https://bartholomew.itslearning.com/index.aspx", "target": "_blank" } ], "siteID" : "18", "siteAlias" : "schmitt", "calendarLink" : "", "contactEmail" : "dayk@bcsc.k12.in.us", "allLoaded" : function(){ $(".cs-global-icons").attr("data-number-icons",$(".gb-global-icons-outer.bottom .cs-global-icons li").length); } }); }, "AppAccordion": function() { $(".sp-column.one").csAppAccordion({ "accordionBreakpoints" : [640, 480, 320] }); }, "RsMenu": function() { // FOR SCOPE var _this = this; $.csRsMenu({ "breakPoint" : 999999, // SYSTEM BREAK POINTS - 768, 640, 480, 320 "slideDirection" : "left-to-right", // OPTIONS - left-to-right, right-to-left "menuButtonParent" : "#mobile-nav-left", "menuBtnText" : "MENU", "colors": { "pageOverlay": "#000000", // DEFAULT #000000 "menuBackground": "#FFFFFF", // DEFAULT #FFFFFF "menuText": "#333333", // DEFAULT #333333 "menuTextAccent": "#333333", // DEFAULT #333333 "dividerLines": "#E6E6E6", // DEFAULT #E6E6E6 "buttonBackground": "#E6E6E6", // DEFAULT #E6E6E6 "buttonText": "#333333" // DEFAULT #333333 }, "showDistrictHome": _this.ShowDistrictHome, "districtHomeText": "District Home", "showSchools" : _this.ShowSchoolList, "schoolMenuText": "Our Schools", "showTranslate" : _this.ShowTranslate, "translateMenuText": "Translate Language", "translateVersion": 2, // 1 = FRAMESET, 2 = BRANDED "translateId" : "", "translateLanguages": [ // ["ENGLISH LANGUAGE NAME", "TRANSLATED LANGUAGE NAME", "LANGUAGE CODE"] ["Afrikaans", "Afrikaans", "af"], ["Albanian", "shqiptar", "sq"], ["Amharic", "አማርኛ", "am"], ["Arabic", "العربية", "ar"], ["Armenian", "հայերեն", "hy"], ["Azerbaijani", "Azərbaycan", "az"], ["Basque", "Euskal", "eu"], ["Belarusian", "Беларуская", "be"], ["Bengali", "বাঙালি", "bn"], ["Bosnian", "bosanski", "bs"], ["Bulgarian", "български", "bg"], ["Burmese", "မြန်မာ", "my"], ["Catalan", "català", "ca"], ["Cebuano", "Cebuano", "ceb"], ["Chichewa", "Chichewa", "ny"], ["Chinese Simplified", "简体中文", "zh-CN"], ["Chinese Traditional", "中國傳統的", "zh-TW"], ["Corsican", "Corsu", "co"], ["Croatian", "hrvatski", "hr"], ["Czech", "čeština", "cs"], ["Danish", "dansk", "da"], ["Dutch", "Nederlands", "nl"], ["Esperanto", "esperanto", "eo"], ["Estonian", "eesti", "et"], ["Filipino", "Pilipino", "tl"], ["Finnish", "suomalainen", "fi"], ["French", "français", "fr"], ["Galician", "galego", "gl"], ["Georgian", "ქართული", "ka"], ["German", "Deutsche", "de"], ["Greek", "ελληνικά", "el"], ["Gujarati", "ગુજરાતી", "gu"], ["Haitian Creole", "kreyòl ayisyen", "ht"], ["Hausa", "Hausa", "ha"], ["Hawaiian", "ʻŌlelo Hawaiʻi", "haw"], ["Hebrew", "עִברִית", "iw"], ["Hindi", "हिंदी", "hi"], ["Hmong", "Hmong", "hmn"], ["Hungarian", "Magyar", "hu"], ["Icelandic", "Íslenska", "is"], ["Igbo", "Igbo", "ig"], ["Indonesian", "bahasa Indonesia", "id"], ["Irish", "Gaeilge", "ga"], ["Italian", "italiano", "it"], ["Japanese", "日本語", "ja"], ["Javanese", "Jawa", "jw"], ["Kannada", "ಕನ್ನಡ", "kn"], ["Kazakh", "Қазақ", "kk"], ["Khmer", "ភាសាខ្មែរ", "km"], ["Korean", "한국어", "ko"], ["Kurdish", "Kurdî", "ku"], ["Kyrgyz", "Кыргызча", "ky"], ["Lao", "ລາວ", "lo"], ["Latin", "Latinae", "la"], ["Latvian", "Latvijas", "lv"], ["Lithuanian", "Lietuvos", "lt"], ["Luxembourgish", "lëtzebuergesch", "lb"], ["Macedonian", "Македонски", "mk"], ["Malagasy", "Malagasy", "mg"], ["Malay", "Malay", "ms"], ["Malayalam", "മലയാളം", "ml"], ["Maltese", "Malti", "mt"], ["Maori", "Maori", "mi"], ["Marathi", "मराठी", "mr"], ["Mongolian", "Монгол", "mn"], ["Myanmar", "မြန်မာ", "my"], ["Nepali", "नेपाली", "ne"], ["Norwegian", "norsk", "no"], ["Nyanja", "madambwe", "ny"], ["Pashto", "پښتو", "ps"], ["Persian", "فارسی", "fa"], ["Polish", "Polskie", "pl"], ["Portuguese", "português", "pt"], ["Punjabi", "ਪੰਜਾਬੀ ਦੇ", "pa"], ["Romanian", "Română", "ro"], ["Russian", "русский", "ru"], ["Samoan", "Samoa", "sm"], ["Scottish Gaelic", "Gàidhlig na h-Alba", "gd"], ["Serbian", "Српски", "sr"], ["Sesotho", "Sesotho", "st"], ["Shona", "Shona", "sn"], ["Sindhi", "سنڌي", "sd"], ["Sinhala", "සිංහල", "si"], ["Slovak", "slovenský", "sk"], ["Slovenian", "slovenski", "sl"], ["Somali", "Soomaali", "so"], ["Spanish", "Español", "es"], ["Sundanese", "Sunda", "su"], ["Swahili", "Kiswahili", "sw"], ["Swedish", "svenska", "sv"], ["Tajik", "Тоҷикистон", "tg"], ["Tamil", "தமிழ்", "ta"], ["Telugu", "తెలుగు", "te"], ["Thai", "ไทย", "th"], ["Turkish", "Türk", "tr"], ["Ukrainian", "український", "uk"], ["Urdu", "اردو", "ur"], ["Uzbek", "O'zbekiston", "uz"], ["Vietnamese", "Tiếng Việt", "vi"], ["Welsh", "Cymraeg", "cy"], ["Western Frisian", "Western Frysk", "fy"], ["Xhosa", "isiXhosa", "xh"], ["Yiddish", "ייִדיש", "yi"], ["Yoruba", "yorùbá", "yo"], ["Zulu", "Zulu", "zu"] ], "showAccount": true, "accountMenuText": "User Options", "usePageListNavigation": false, "extraMenuOptions": {}, "siteID": "18", "allLoaded": function(){} }); }, "ViewFullSite": function() { // VIEW FULL SITE BUTTON ON MOBILE if(this.ShowFullSiteButton) { $("#gb-page").addClass("using-full-site-btn"); $("body").viewFullSite({ "breakPoint" : 639, // SYSTEM BREAK POINTS - 1023, 767, 639, 479 "buttonContainer" : "body", "useDefaultCSS" : "yes", "fixedPosition" : "bottom" // IF USING DEFAULT STYLES - TOP, BOTTOM }); } }, "Search": function() { // FOR SCOPE var _this = this; var searchControlPosition = $("#gb-search-control").offset().top; $("#gb-search-form-wrapper").css("margin-top",searchControlPosition); //OPENING SEARCH $("#gb-search-control").on('click keypress', function(event){ var searchControl = this; if(_this.AllyClick(event) === true){ //DONT LET THE PAGE JUMP ON KEYPRESS event.preventDefault(); if(!$("body").hasClass("search-open")){ $("body").addClass("search-open"); $(searchControl).attr("aria-expanded","true"); $("#gb-search").fadeIn(function(){ setTimeout(function () { $("#gb-search").addClass("visible"); }, 100); $("#gb-search-input").focus(); }).attr("aria-hidden","false"); } } }) //CLOSING SEARCH $("#gb-close-search").on('click keypress', function(event){ if(_this.AllyClick(event) === true){ //DONT LET THE PAGE JUMP ON KEYPRESS event.preventDefault(); $("#gb-search").removeClass("visible"); setTimeout(function () { $("#gb-search").fadeOut().attr("aria-hidden","true"); $("body").removeClass("search-open"); $("#gb-search-control").attr("aria-expanded","false"); $("#gb-search-control").focus(); }, 300); } }) //SEARCH FORM SUBMISSION $("#gb-search-form").submit(function(e){ e.preventDefault(); if($("#gb-search-input").val() != "Search...") { window.location.href = "/site/Default.aspx?PageType=6&SiteID=18&SearchString=" + $("#gb-search-input").val(); } }); //SEARCH INPUT TEXT $("#gb-search-input").on("keydown", function(e){ // CAPTURE KEY CODE switch(e.keyCode) { // CONSUME ESC KEY case _this.KeyCodes.esc: $("#gb-search").removeClass("visible"); setTimeout(function () { $("#gb-search").fadeOut().attr("aria-hidden","true"); $("body").removeClass("search-open"); $("#gb-search-control").attr("aria-expanded","false").focus(); }, 300); break; } }); $("#gb-search-input").on("focus", function(){ if($(this).val() == "What are you searching for?") { $(this).val(""); } }).blur(function() { if($(this).val() == "") { $(this).val("What are you searching for?"); } }) //SEARCH MODAL KEYBOARD NAV $("#gb-search-button").on("keydown", function(e) { // CAPTURE KEY CODE switch(e.keyCode) { // CONSUME TAB KEY case _this.KeyCodes.tab: if(!e.shiftKey){ e.preventDefault(); $("#gb-close-search").focus(); } break; // CONSUME ESC KEY case _this.KeyCodes.esc: $("#gb-search").removeClass("visible"); setTimeout(function () { $("#gb-search").fadeOut().attr("aria-hidden","true"); $("body").removeClass("search-open"); $("#gb-search-control").attr("aria-expanded","false").focus(); }, 300); break; } }); $("#gb-close-search").on("keydown", function(e) { // CAPTURE KEY CODE switch(e.keyCode) { // CONSUME TAB KEY case _this.KeyCodes.tab: if(e.shiftKey){ e.preventDefault(); $("#gb-search-button").focus(); } break; // CONSUME ESC KEY case _this.KeyCodes.esc: $("#gb-search").removeClass("visible"); setTimeout(function () { $("#gb-search").fadeOut().attr("aria-hidden","true"); $("body").removeClass("search-open"); $("#gb-search-control").attr("aria-expanded","false").focus(); }, 300); break; } }); }, "AllyClick": function(event) { if(event.type == "click") { return true; } else if(event.type == "keydown") { if(event.keyCode == this.KeyCodes.space || event.keyCode == this.KeyCodes.enter) { return true; } } else { return false; } }, "GetBreakPoint": function() { return window.getComputedStyle(document.querySelector("body"), ":before").getPropertyValue("content").replace(/"|'/g, "");/*"*/ } };