mirror of
https://github.com/Emupedia/emupedia.github.io.git
synced 2026-12-03 14:19:54 +08:00
More work
This commit is contained in:
@@ -299,7 +299,7 @@
|
||||
self.widget({
|
||||
title: $(this).data('name'),
|
||||
icon: $(this).data('icon'),
|
||||
content: '<iframe id="' + $(this).data('name') + '" width="100%" height="100%" src="' + $(this).data('link') + '" onload="this.focus();this.contentWindow.focus();" frameborder="0" allowFullscreen="true" allowTransparency="true" sandbox="allow-forms allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation"></iframe>',
|
||||
content: '<iframe id="' + $(this).data('name') + '" width="100%" height="100%" src="' + $(this).data('link') + '" onload="this.focus();this.contentWindow.focus();" frameborder="0" allowFullscreen="true" allowTransparency="true" allow="autoplay; fullscreen; accelerometer; gyroscope" sandbox="allow-forms allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation"></iframe>',
|
||||
width: $(this).data('width'),
|
||||
height: $(this).data('height'),
|
||||
top: $(this).data('top'),
|
||||
@@ -676,7 +676,7 @@
|
||||
height: 350,
|
||||
right: '0px',
|
||||
bottom: '28px',
|
||||
content: '<iframe id="Chat" width="100%" height="100%" src="https://cojmar.github.io/n_chat/" frameborder="0" allowFullscreen="allowFullscreen" allowTransparency="true" sandbox="allow-forms allow-downloads allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation"></iframe>'
|
||||
content: '<iframe id="Chat" width="100%" height="100%" src="https://cojmar.github.io/n_chat/" frameborder="0" allowFullscreen="allowFullscreen" allowTransparency="true" allow="autoplay; fullscreen; accelerometer; gyroscope" sandbox="allow-forms allow-downloads allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation"></iframe>'
|
||||
});
|
||||
|
||||
self.$html.contextmenu({
|
||||
@@ -1016,7 +1016,7 @@
|
||||
var timestamp = Math.floor(Date.now() / 1000);
|
||||
|
||||
// noinspection HtmlDeprecatedAttribute,JSUnresolvedVariable,JSUnresolvedFunction
|
||||
var win = $('<div class="iframe" data-title="'+ title +'"><iframe id="' + title + '-' + timestamp + '" src="' + src + '" onload="this.focus();this.contentWindow.focus();" frameborder="0" allowFullscreen="true" allowTransparency="true" allow="autoplay; fullscreen" sandbox="allow-forms allow-downloads allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation"></iframe></div>');
|
||||
var win = $('<div class="iframe" data-title="'+ title +'"><iframe id="' + title + '-' + timestamp + '" src="' + src + '" onload="this.focus();this.contentWindow.focus();" frameborder="0" allowFullscreen="true" allowTransparency="true" allow="autoplay; fullscreen; accelerometer; gyroscope" sandbox="allow-forms allow-downloads allow-modals allow-pointer-lock allow-popups allow-popups-to-escape-sandbox allow-presentation allow-same-origin allow-scripts allow-top-navigation-by-user-activation"></iframe></div>');
|
||||
|
||||
self.$body.append(win);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user