PATH:
home
/
lab2454c
/
costbloc.com
/
Modules
/
CMS
/
Resources
/
assets
/
js
"use strict";$(".main-body .page-wrapper").find("#page-container").length&&$(document).ready(function(){$("#summernote").summernote({tabsize:2,height:240,styleWithCSS:!0,styleTags:["p",{title:"Blockquote",tag:"blockquote",className:"blockquote",value:"blockquote"},"pre","h1","h2","h3","h4","h5","h6"],toolbar:[["style",["style"]],["font",["bold","underline","clear"]],["color",["color"]],["para",["ul","ol","paragraph"]],["table",["table"]],["insert",["link"]],["view",["codeview","help"]]],callbacks:{onInit:function(){$("<div class=\"note-file btn-group note-btn-group\"><button id=\"makeSnote\" type=\"button\" class=\"note-btn editor-img-btn btn btn-default btn-sm has-media-manager\" data-val=\"single\" tabindex=\"-1\" title=\"\" aria-label=\"Picture\" data-original-title=\"Picture\" aria-describedby=\"tooltip682862\"><i class=\"note-icon-picture\"></i></button></div>").appendTo($(".note-toolbar")),$("#makeSnote").tooltip({container:"body",placement:"bottom"})}}})}),$(document).on("keyup","#name",function(){var a=this.value.replace(/[&\/\\#@,+()$~%.'":*?<>{}]/g,"");let b=document.querySelector("#slug");b.value=a.trim().toLowerCase().replace(/\s/g,"-"),0<a.length&&b.parentNode.querySelector(".error")&&(b.setCustomValidity(""),b.parentNode.querySelector(".error").remove())}),$(document).on("keyup",".note-editable",function(){let a=$(this).html();if(0<a.length){let a=this.closest(".editor").querySelector(".sm_note");a.setCustomValidity(""),a.closest(".editor").querySelector(".error")&&a.closest(".editor").querySelector(".error").remove()}}),$("#btnSubmit").on("click",function(a){(""==$("#name").val()||""==$("#slug").val()||""==$("#description").val())&&($("#home").addClass("active show"),$("[href=\"#home\"]").tab("show").addClass("active"),$("#profile").removeClass("active show"),$("#home").attr("aria-labelledby").val("home-tab"),a.preventDefault())}),$(".page-submit").click(function(){var a=["#home","#profile"];setTimeout(()=>{for(const c in a)if($(a[c]).find(".error").length){var b=$(a[c]).attr("aria-labelledby");console.log(b),$("#"+b).trigger("click");break}},100)}),$(document).on("file-attached",".editor-img-btn",function(a,b){b.data.forEach(a=>{$("#summernote").summernote("pasteHTML"," <p><img src=\""+a.url+"\" style=\"width: 100%;\"/><br></p>")})});
[-] slider.js
[edit]
[+]
..
[-] page.js
[edit]
[-] query.min.js
[edit]
[-] app.min.js
[edit]
[-] app.js
[edit]
[-] slider.min.js
[edit]
[-] jquery-ui.js
[edit]
[-] user-custom.js
[edit]
[-] page.min.js
[edit]
[-] builder.min.js
[edit]
[-] query.js
[edit]
[-] builder.js
[edit]
[-] jquery-ui.min.js
[edit]
[-] theme.min.js
[edit]
[-] theme.js
[edit]