SharePoint 2013 - Add a custom web application / page that uses files from other folders

I created a JavaScript browser. The HTML page Game.htmlin the folder Gamerefers to several other JS / jQuery / CSS files stored in subfolders.

I just want to add a folder Gamethat includes the file Game.htmland all the files associated with it in SharePoint 2013 as a page. This way, people can play the game at SP 2013.

enter image description here

I tried the following:

  • Click Add Page. This gives me a homepage and allows me to add web parts. So I tried to add the Content Editor web part and tried to link to the page Game.html, but then I can’t link to the rest of the required JavaScript.

  • Game . Game.html ... .

Game.html SP 2013 JS ?


: , :

1) http://server/SiteAssets/Forms/AllItems.aspx, Game.html, JS.

2) Game.html , :

    <script src="http://Server/SiteAssets/createjs.js"></script>
    <script src="http://Server/SiteAssets/bootstrap.js"></script>
    <script src="http://Server/SiteAssets/jquery.js"></script>
etc...

3) Settings -> Add a page, http://Server/Pages/Game.aspx.

4) ​​- (CEWP) Game. CEWP, Game.html, SiteAssets.

5) Game.html :

enter image description here

, , JavaScript. . , JavaScript, :

Game.html: <body onload="test()">

Game.html: function test() { alert("working"); } "".

. jQuery , , , , HTML...

  • , HTML Game.html: enter image description here

  • enter... init() jquery/createJS .. enter image description here

  • HTML Game.html enter image description here

?

+4
1

Sharepoint.

. , sharepoint -. ( , iframe).

, sharepoint ..

0

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


All Articles