var currentSamplepage = undefined, SamplesList = null, editcontrolpath = null, selthemecolor = null, cssheight = null, popupObj, resMenu_obj = null; var loadedScripts = []; var isPopupclosed = false, isContentMinimized = false; window.theme = window.location.hash == "" ? "bootstrap" : window.location.hash.split("/")[1].replace("dark", ""); var absoluteUrl = window.location.toString().replace(window.location.hash, "").replace("default.htm", ""), angular; if (absoluteUrl.match(/^.*(?=(\?_ga))/)) { absoluteUrl = absoluteUrl.match(/^.*(?=(\?_ga))/)[0]; // To remove google analytics string } window.themecolor = ""; window.themestyle = ""; window.themevarient = "", removeGroup = false; var isFullPageLoad = true; isPopupOpened = false; var culture_switch = [{ id: "1", locale: "en-US" }, { id: "2", locale: "de-DE" }, { id: "3", locale: "es-ES" }, { id: "4", locale: "fr-FR" }, { id: "5", locale: "zh-CN" }]; window.isMac = function () { return (/(ipad|iphone|ipod touch)/i).test(navigator.userAgent.toLowerCase()) && !(/trident|windows phone/i.test(navigator.userAgent.toLowerCase())); } _isAndroid = function () { return ((/android/i.test(navigator.userAgent.toLowerCase())) && !this.isWindows()); } isWindows = function () { return (/trident|windows phone/i.test(navigator.userAgent.toLowerCase())); } isDevice = ej.isDevice() && ej.isTouchDevice(); window.baseurl = "//js.syncfusion.com/demos/ejServices/"; window.biurl = "//bi.syncfusion.com/"; initControls = function () { if (document.referrer && document.referrer.split('/')[2] != window.location.host) { var existingCookieValue = getCookieValue("SampleSiteReferrer"); var currentUrl = ""; if (existingCookieValue.indexOf(window.location.host) === -1) { currentUrl = "," + window.location.href; } if (existingCookieValue != "undefined" && existingCookieValue != undefined && existingCookieValue != "") { existingCookieValue = existingCookieValue + currentUrl; document.cookie = "SampleSiteReferrer" + "=" + existingCookieValue + ";path=/;domain=syncfusion.com"; } else { document.cookie = "SampleSiteReferrer" + "=" + document.referrer + currentUrl + ";path=/;domain=syncfusion.com"; } } $("#culture_switcher").ejDropDownList({ enablePersistence: true, height: "27px", width: "83px", value: "en-US", dataSource: culture_switch, fields: { id: "id", text: "locale", value: "locale" }, select: "culture_switcher", showRoundedCorner: true }); $.ajax({ url: 'scripts/cultures/ej.culture.' + $("#culture_switcher").val() + '.min.js', async: true }); $.ajax({ url: 'scripts/l10n/ej.localetexts.' + $("#culture_switcher").val() + '.min.js', async: false }); ej.setCulture($("#culture_switcher").val()); $(".nav_btn").ejButton({ size: "mini", cssClass: "metroblue", contentType: "imageonly", }); $("#newsamplewindow").ejButton("option", "prefixIcon", "e-icon newwindow"); $("#prev_btn").ejButton({ prefixIcon: "e-icon e-rarrowleft-2x", click: function (evt, args) { var index = $("#samplesDiv .SB-hashcollection").index($("#samplesDiv .highlighttextbg").parent()); if (index > 0) { var hashBang = $($("#samplesDiv .SB-hashcollection")[index - 1]).attr("hashbang"); queryChange(hashBang); } } }); $("#next_btn").ejButton({ prefixIcon: "e-icon e-rarrowright-2x", click: function (evt, args) { var index = $("#samplesDiv .SB-hashcollection").index($("#samplesDiv .highlighttextbg").parent()); if (index < $("#samplesDiv .SB-hashcollection").length - 1) { var hashBang = $($("#samplesDiv .SB-hashcollection")[index + 1]).attr("hashbang") queryChange(hashBang); } } }); $(".control-panel").ejWaitingPopup({ template: $("#sbwaitingTemplate") }); popupObj = $(".control-panel").ejWaitingPopup("instance"); popupObj.maindiv.addClass("sbloadingpopup"); $("#sourceTab").ejTab({ cssClass: "metroblue", enableTabScroll: false }); $("").attr("id", "edit-wrapper").appendTo("#sourceTab ul"); $("