User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: External .js file for fullscreen - How to implement

  1. #1
    Clicker Fusion 2.5HTML5 Export Module

    Join Date
    Jun 2016
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    External .js file for fullscreen - How to implement

    Hello

    After realizing by reading ClickWiki that fullscreen is definetly not possible in HTML5 exporter i like to add this .js file into it and hopefully it will work.

    https://github.com/motyar/fullscreen

    I added also <script type="text/javascript" charset="utf-8" src="fullscreen.js"></script> in the header of the index.html but no result.

    So any ideas how to get this fullscreen possibility in html 5 alive ?

    Thanks

  2. #2
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    advaith's Avatar
    Join Date
    Jun 2015
    Location
    SF Bay Area, California, USA
    Posts
    1,324
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Wait so did you add the js file?

    also, you need to add the script at the end of the body, not the head.

  3. #3
    Clicker Fusion 2.5HTML5 Export Module

    Join Date
    Jun 2016
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Could you please built a working demo ? Because i can make too many mistakes by adding all things. At the end a lot of people will need this as well i think. Normally in html / css coding this would be a lousy task for me but i am new to Fusion and my head is already exploding with all this new informations ... so ... I tried with the HTML 5 object on javascript call function .. Right or wrong ? hehehe ...

    Would be really nice learning from a master :-)

  4. #4
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    advaith's Avatar
    Join Date
    Jun 2015
    Location
    SF Bay Area, California, USA
    Posts
    1,324
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Here: GitHub repo Built version

    Yes, the app is just a gray box. (I wanted to get something working as fast as possible

  5. #5
    Clicker Fusion 2.5HTML5 Export Module

    Join Date
    Jun 2016
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Nice work but this ( the button ) is not inside the game or ? Sorry when i was not clear enough ...

  6. #6
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    advaith's Avatar
    Join Date
    Jun 2015
    Location
    SF Bay Area, California, USA
    Posts
    1,324
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    You do not need to use any object in Fusion, you just need to uncheck the build HTML file option and build the app to the demo folder.

    I put all the instructions in the GitHub repo README.

  7. #7
    Clicker Fusion 2.5HTML5 Export Module

    Join Date
    Jun 2016
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmmm .... So after reading the README i still say it is outside the game. Inside the page. Ok this thinking is quite ok but in my view it is not perfect. I would like to have a button inside the game not next to it. Even if it works it takes space and can overlap the game itself. Maybe i will set it via CSS to a Z-index. But this is also only 2nd choice. However if you have any idea of how to add the button inside the game and calling the .js from inside let us know.

    Totally perfect would be a new fullscreen object extension for HTML5 based on this script.

    Thanks for your time.

  8. #8
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    advaith's Avatar
    Join Date
    Jun 2015
    Location
    SF Bay Area, California, USA
    Posts
    1,324
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Well it just depends on the frame size and browser window size, if they are the same the icon will go on top of the game.

  9. #9
    Clicker Fusion 2.5HTML5 Export Module

    Join Date
    Jun 2016
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    So no image inside the game possible and calling the .js from the HTML5 object ? This was the main how to question :-)

  10. #10
    Clicker Fusion 2.5Fusion 2.5 MaciOS Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    advaith's Avatar
    Join Date
    Jun 2015
    Location
    SF Bay Area, California, USA
    Posts
    1,324
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    The image will be in the corner of the browser area, if it is over the game or not depends on the browser and game sizes. Resize your browser window to see what I am talking about.

    You do not need to use the HTML5 object (as I said earlier), just follow the instructions on GitHub and it will work.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. External File Not Included?
    By plusallofyou in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 27th April 2013, 11:42 PM
  2. Delete external file AND check if file exists
    By Renatos in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 16th August 2011, 03:39 PM
  3. To launch a file html or external file
    By daniele in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 29th July 2009, 07:39 PM
  4. Including an External File
    By Jaffob in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 11th June 2009, 02:18 PM
  5. external file
    By magoburicchio in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 4th June 2007, 06:32 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •