2つの異なるjqueryをページの読み込みで実行するにはどうすればよいですか?
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のプラグインを持っています。 1つはオーバーレイ用です&もう1つはポップアップビデオです。両方ともページload.Iで実行され、最初にページの読み込み時にビデオをポップアップしたい。ビデオを閉じると、オーバーレイのjqueryが実行されます。