1
mounted: function() {
$(function(){
$(document).ready(function(){
Tour.run([
{
element: $('#interest'),
content: 'by default tour is on the right'
},
{
element: $('#course'),
content: 'but it can be on top',
position: 'right'
},
{
element: $('#trade'),
content: 'bottom',
position: 'right'
},
{
element: $('#district'),
content: 'and finally on the left',
position: 'right'
},
{
element: $('#InstituteSearch'),
content: 'and finally on the left',
position: 'right'
},
{
element: $('#btn-search'),
content: 'and finally on the left',
position: 'right'
},
{
element: $('#btn-claear'),
content: 'and finally on the left',
position: 'right'
}
]);
});
});
(function($) {
$(document).ready(function() {
$.magnificPopup.open({
items: {
src: 'https://www.youtube.com/watch?v=K8E6xsac2MU'
},
type: 'iframe'
}, 0);
});
})(jQuery);
},
我有两个jQuery插件。一个是覆盖&另一个是弹出式视频。两者都在页面加载时执行。我希望首先在页面加载时弹出视频。关闭视频后,叠加层的jquery应该执行。