Google Gadgets and External Scripts

I am trying to create my first custom Google gadget to be used privately on my Google Sites intranet. Ideally, I would just like to show a sketch that the user can click to open a modal window with the full video. To do this, you need to include several small JS libraries in my widget.

For my widget, I created this XML:

<?xml version="1.0" encoding="UTF-8"?>
<Module>
    <ModulePrefs title="Video Demos" />
    <Content view="url" 
        href="http://www.website.com/_gadgets/video.php">
    </Content>
</Module>

The "video.php" page has simple HTML and includes two JS files for the modal window with , but does not work.

Can't you include external scripts like this? If not, what are my options?

+3
source share
1 answer

. "type" "url":

<?xml version="1.0" encoding="UTF-8"?>
<Module>
    <ModulePrefs title="Video Demos" />
    <Content type="url" 
        href="http://www.website.com/_gadgets/video.php">
    </Content>
</Module>

[] S

+1

Source: https://habr.com/ru/post/1749278/


All Articles