Import legacy nurinda.co.id website
This commit is contained in:
1 parent
3f59bb9038
commit
6e21646ac4
13389 files changed
+3246690
No files matched your search
@@ -0,0 +1 @@
|
||||
var vcPointerMessage,vc_iframe={scripts_to_wait:0,time_to_call:!1,ajax:!1,activities_list:[],scripts_to_load:!1,loaded_script:{},loaded_styles:{},inline_scripts:[],inline_scripts_body:[]};!function($){vc_iframe.showNoContent=function(show){var $vc_no_content_helper_el=$("#vc_no-content-helper");!1===show&&$vc_no_content_helper_el.addClass("vc_not-empty")||$vc_no_content_helper_el.removeClass("vc_not-empty")},vc_iframe.scrollTo=function(id){var $el,el_height,position_y,position,window_height=$(window).height(),window_scroll_top=$(window).scrollTop();if(id&&($el=$("[data-model-id="+id+"]"))){if(!1===(position_y=!!(position=$el.offset())&&position.top))return!1;el_height=$el.height(),(window_scroll_top+window_height<position_y||position_y+el_height<window_scroll_top)&&$.scrollTo($el,500,{offset:-50})}},vc_iframe.startSorting=function(){$("body").addClass("vc_sorting")},vc_iframe.stopSorting=function(){$("body").removeClass("vc_sorting")},vc_iframe.initDroppable=function(){$("body").addClass("vc_dragging"),$(".vc_container-block").bind("mouseenter.vcDraggable",function(){$(this).addClass("vc_catcher")}).bind("mouseout.vcDraggable",function(){$(this).removeClass("vc_catcher")})},vc_iframe.killDroppable=function(){$("body").removeClass("vc_dragging"),$(".vc_container-block").unbind("mouseover.vcDraggable mouseleave.vcDraggable")},vc_iframe.addActivity=function(callback){this.activities_list.push(callback)},vc_iframe.renderPlaceholder=function(event,element){var tag=$(element).data("tag"),is_container=parent.vc.map[tag]===Object(parent.vc.map[tag])&&((!0===parent.vc.map[tag].is_container||!1===parent.vc.map[tag].is_container||"[object Boolean]"===toString.call(parent.vc.map[tag].is_container))&&!0===parent.vc.map[tag].is_container||null!=parent.vc.map[tag].as_parent&&"[object Array]"===Object.prototype.toString.call(parent.vc.map[tag].as_parent)&&0!=parent.vc.map[tag].as_parent);return $('<div class="vc_helper vc_helper-'+tag+'"><i class="vc_general vc_element-icon'+(parent.vc.map[tag].icon?" "+parent.vc.map[tag].icon:"")+'"'+(is_container?' data-is-container="true"':"")+"></i> "+parent.vc.map[tag].name+"</div>").prependTo("body")},vc_iframe.setSortable=function(app){var setSectionSortable,setRowSortable,setElementsSortable,$rowSortable,$elementsSortable,_this=this;parent.vc.$page.addClass("vc-main-sortable-container");var $sectionSortables,$main=$(parent.vc.$page);$main.sortable({forcePlaceholderSize:!1,connectWith:!1,items:"> [data-tag=vc_row], > [data-tag=vc_section]",handle:" > .vc_row .vc_move-vc_row, > .vc_controls .vc_element-move",cursor:"move",cursorAt:{top:20,left:16},placeholder:"vc_placeholder-row",cancel:".vc-non-draggable-row",helper:_this.renderPlaceholder,start:function(event,ui){vc_iframe.startSorting(),ui.placeholder.height(30),"vc_section"==ui.item.data("tag")?($sectionSortables&&$sectionSortables.sortable("destroy"),$rowSortable&&$rowSortable.sortable("destroy"),$elementsSortable&&$elementsSortable.sortable("destroy"),$main.sortable("option","connectWith",!1)):$main.sortable("option","connectWith",['[data-tag="vc_section"] > .vc_element-container']),$main.sortable("refresh")},stop:function(event,ui){var tag,vc_map,parent_tag,allowed_container_element,trig_changed;(_this.stopSorting(),"vc_section"==(tag=ui.item.data("tag"))&&(setSectionSortable(),setRowSortable(),setElementsSortable()),$main.sortable("option","connectWith",!1),$main.sortable("refresh"),vc_map=window.parent.vc.map||!1,trig_changed=!0,parent_tag=ui.item.parents("[data-tag]:first").data("tag"))&&(allowed_container_element=!vc_map[parent_tag].allowed_container_element||vc_map[parent_tag].allowed_container_element,window.parent.vc.checkRelevance(parent_tag,tag)||(ui.placeholder.removeClass("vc_hidden-placeholder"),$(this).sortable("cancel"),trig_changed=!1),vc_map[tag]===Object(vc_map[tag])&&((!0===vc_map[tag].is_container||!1===vc_map[tag].is_container||"[object Boolean]"===toString.call(vc_map[tag].is_container))&&!0===vc_map[tag].is_container||null!=vc_map[tag].as_parent&&"[object Array]"===Object.prototype.toString.call(vc_map[tag].as_parent)&&0!=vc_map[tag].as_parent)&&!0!==allowed_container_element&&allowed_container_element!==tag.replace(/_inner$/,"")&&(ui.placeholder.removeClass("vc_hidden-placeholder"),$(this).sortable("cancel"),trig_changed=!1));trig_changed&&parent.vc.shortcodes.get(ui.item.data("modelId")).view.parentChanged()},tolerance:"pointer",update:function(event,ui){parent.vc.app.saveRowOrder(event,ui)}}),setElementsSortable=function(){$elementsSortable=$(".vc_element-container:not(.vc_section)").sortable({forcePlaceholderSize:!0,helper:this.renderPlaceholder,distance:3,scroll:!0,scrollSensitivity:70,cursor:"move",cursorAt:{top:20,left:16},connectWith:".vc_element-container:not(.vc_section)",items:"> [data-model-id]",cancel:".vc-non-draggable",handle:".vc_element-move",start:this.startSorting,update:app.saveElementOrder,change:function(event,ui){ui.placeholder.height(30),ui.placeholder.width(ui.placeholder.parent(Line truncated
|
||||
Reference in new issue
Block a user