memoscan
← all memos

Memo 0xa0bff21c…1a0340 on Ethereum

https://github.com/PlasmmerDev/Framework.js.git /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app img/ symlink "node_modules"/ -> /1/Floflis/libs/node_modules symlink "notes"/ -> ../notes Test of FrameworkJS' very first omni/hybrid app which works at KaiOS, Cordova, Firefox OS, Electron, Web, etc 🦎ᘛ⁐̤ᕐᐷ🐙 https://emojicombos.com/chameleon --------------------------------------------------------------------------------------------------------------------------- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/fileprotocol.js ----> --------------------------------------------------------------------------------------------------------------------------- if("file:" !== document.location.protocol) { document.querySelector("#fileprotocol").innerHTML = ``; } --------------------------------------------------------------------------------------------------------------------------- <---- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/fileprotocol.js --------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/framlr.css ----> --------------------------------------------------------------------------------------------------------------------------- body{margin:inherit;background:transparent} .wm-window{height:calc(100% - 2px)!important} #wm-content{overflow:auto;/* height:calc(100% - 34px)!important */height: calc(100% - 36px)!important} #wm-content object{width:100%;height:100%} .wm-window-title { user-select: none; -webkit-app-region: drag; cursor: default; height: 34px; /* background: #00A2E8; border-bottom: 1px solid #0094D2; */ background: #00a2e8; border-bottom: 1px solid #0094d2 } #window_title { font-size: 16px; line-height: 32px; position: relative; left: 5px; color: #fff; font-family: Calibri,-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica Neue,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol; font-weight: bold } #window_icon { -webkit-app-region: no-drag; position: relative; left: 4px; top: -1px } .wm-button-group { -webkit-app-region: no-drag; float: right; margin-top: 3px; margin-right: 3px } .wm-button { height: 23px!important; padding: 0px!important; /* border: 1px solid #0094d2!important; */ border: none!important; border-radius: 0px!important } /* .wm-button:hover{border:1px solid #082510!important} */ .wm-button:active { filter: none!important; /* border: 1px solid #095533!important */ } .wm-button:focus{outline:none!important} .wm-button.wm-minimize{width:33px!important} .wm-button.wm-maximize{width:33px!important} .wm-button.wm-close{width:34px!important} .wm-minimize{background:url(img/minimize.png)!important} .wm-minimize:hover{background-position-x:-33px!important} .wm-minimize:active{background-position-x:-66px!important} .wm-maximize{background:url(img/maximize.png)!important} .wm-maximize:hover{background-position-x:-33px!important} .wm-maximize:active{background-position-x:-66px!important} .wm-maximize.restore{background-position-y:-23px!important} .wm-close{background:url(img/close.png)!important} .wm-close:hover{background-position-x:-34px!important} .wm-close:active{background-position-x:-68px!important} .wm-window.framed{/*border-radius:10px;*//*border:1px solid #0094D2;*/border:1px solid #0094d2} .wm-window-title.framed{/*border-top-left-radius:10px;border-top-right-radius:10px*/} --------------------------------------------------------------------------------------------------------------------------- <---- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/framlr.css --------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/framlr.html ----> --------------------------------------------------------------------------------------------------------------------------- <script type="text/javascript" src="framlr.js"></script> <link rel="stylesheet" type="text/css" href="framlr.css"> <div class="wm-window" id="wm-window"> <div class="wm-window-title" id="wm-window-title"> <img id="window_icon" width="16px" height="16px" src="icon.png"> <span id="window_title">Untitled project 1</span> <div class="wm-button-group"> <button id="minimize" class="wm-button wm-minimize"></button><button id="maximize" class="wm-button wm-maximize"></button><button id="close" class="wm-button wm-close"></button> </div> </div> <section id="wm-content"><object data="index.html"></object></section> </div> --------------------------------------------------------------------------------------------------------------------------- <---- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/framlr.html --------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/framlr.js ----> --------------------------------------------------------------------------------------------------------------------------- (function () { // Retrieve remote BrowserWindow const {BrowserWindow} = require('electron').remote function init() { var window = BrowserWindow.getFocusedWindow(); if(window.isMaximized()){ document.getElementById("wm-window").classList.remove("framed"); document.getElementById("wm-window-title").classList.remove("framed"); }else{ document.getElementById("wm-window").classList.add("framed"); document.getElementById("wm-window-title").classList.add("framed"); //var element = document.getElementById('wm-window'); //element.classList.add('framed'); } // Minimize task document.getElementById("minimize").addEventListener("click", (e) => { var window = BrowserWindow.getFocusedWindow(); window.minimize(); }); // Maximize window document.getElementById("maximize").addEventListener("click", (e) => { var window = BrowserWindow.getFocusedWindow(); if(window.isMaximized()){ window.unmaximize(); document.getElementById("maximize").classList.remove("restore"); document.getElementById("wm-window").classList.add("framed"); document.getElementById("wm-window-title").classList.add("framed"); }else{ window.maximize(); document.getElementById("maximize").classList.add("restore"); document.getElementById("wm-window").classList.remove("framed"); document.getElementById("wm-window-title").classList.remove("framed"); } }); // Close app document.getElementById("close").addEventListener("click", (e) => { var window = BrowserWindow.getFocusedWindow(); window.close(); }); }; document.onreadystatechange = () => { if (document.readyState == "complete") { init(); } }; })(); --------------------------------------------------------------------------------------------------------------------------- <---- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/framlr.js --------------------------------------------------------------------------------------------------------------------------- icon.png --------------------------------------------------------------------------------------------------------------------------- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/index.html ----> --------------------------------------------------------------------------------------------------------------------------- <!DOCTYPE html> <html lang="en-us"> <head id="head"> <meta name="theme-color" content="#00A185" /> <title color="#fff">Framework.js</title> <meta charset="utf-8"> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <meta content="width=device-width,initial-scale=1,minimal-ui,shrink-to-fit=no" name="viewport"> <link rel="icon" href="notes/logo.png" /> <link rel="logo" href="logo.svg" border="true" /> <script type="text/javascript" src="index.js"></script> <meta name="pehtml" content="true"> <meta name="directory" content="css, js, img, snd"> <meta name="description" content="Its a modern and responsive framework/template/theme thinked for apps and sites of the future. A unique framework with the same code, both for apps and sites."> <meta name="keywords" content="HTML5 Framework, Web Framework, Web UI Framework, Site Framework, App Framework"> <script data-main="index.js" src="require.js"></script> </head> <body id="body"> <div id="placefirst"></div> <div id="splashloader"><div style="background: #044b3b;position: absolute;width: 100%;height: 100%;top: 0;left: 0;user-select: none;-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;z-index:6000"><center><img src="logo.svg" style="user-drag: none;-webkit-user-drag: none;" draggable="false" width="30%"><h1 style="color: #fff;">Loading...</h1></center></div></div> <style> mark{background:#FFFFBA} header{background-color:#00A185!important} </style> <center> <div id="landinglogo"><img width="100px" src="logo.svg"/></div> <div id="landingtitle"><h1>Welcome to <b>FrameworkJS</b> r3!</h1></div> <span>The framework for the Web 3.0. Smart & adaptive: just like an octopus.</span> <h2>💡 We've detected our environment: <mark><span id="environment"></span></mark> 🐙</h2> <hr/> <br/><copyright><center><span><small>(c) 2014-2022 FrameworkJS by <a href="https://developers.plasmmer.eth.link/" target="blank">Plasmmer Developers</a>. Credits to our inspiration for the octopus icon: <a href="http://icons8.com/license/" target="_blank">icons8</a>.</small></span></center></copyright> <br/><a href="https://frameworkjavascript.github.io/Framework.js" target="_blank"><img width="135px" src="notes/seal-light-bg.png"/></a> </center> </body> </html> --------------------------------------------------------------------------------------------------------------------------- <---- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/index.html --------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/index.js ----> --------------------------------------------------------------------------------------------------------------------------- var OSName="Unknown OS"; if (navigator.userAgent.indexOf("Mozilla/5.0 (Mobile; rv")!=-1) OSName="Firefox OS"; if (navigator.userAgent.indexOf("Mozilla/5.0 (Mobile; rv:48.0")!=-1) OSName="KaiOS"; if (navigator.userAgent.indexOf("KAIOS")!=-1) OSName="KaiOS"; // start of "window.onload" window.onload = function(){ document.querySelector("#splashloader").innerHTML = ``; var envlogtxt = "Environment detected: " if(OSName == 'Firefox OS'){ console.log(envlogtxt +OSName +"🦊"); var element = document.getElementById('environment'); if (typeof(element) != 'undefined' && element != null){ var environmenttext = document.getElementById('environment'); var text = document.createTextNode(OSName); environmenttext.appendChild(text); var element = document.getElementById('elementId'); } } if(OSName == 'KaiOS'){ console.log(envlogtxt +OSName +"🈺"); var element = document.getElementById('environment'); if (typeof(element) != 'undefined' && element != null){ var environmenttext = document.getElementById('environment'); var text = document.createTextNode(OSName); environmenttext.appendChild(text); } requirejs(["platform-kaios.js"],function(util){}); requirejs(["platform-kaios-custom.js"],function(util){}); } if (OSName !== 'KaiOS'){ requirejs(["platform-not-kaios.js"],function(util){}); requirejs(["platform-not-kaios-custom.js"],function(util){}); if (OSName !== 'Firefox OS'){ document.querySelector("#splashloader").innerHTML = ``; console.log(envlogtxt +"Not Firefox OS and not KaiOS."); var element = document.getElementById('environment'); if (typeof(element) != 'undefined' && element != null){ var environmenttext = document.getElementById('environment'); var text = document.createTextNode("Not Firefox OS and not KaiOS."); environmenttext.appendChild(text); } requirejs(["platform-not-kaios-not-firefox.js"],function(util){}); } } } // end of "window.onload" --------------------------------------------------------------------------------------------------------------------------- <---- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/index.js --------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/logo.svg ----> --------------------------------------------------------------------------------------------------------------------------- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> <svg width="742pt" height="743pt" viewBox="0 0 742 743" version="1.1" xmlns="http://www.w3.org/2000/svg"> <g id="#019b7fff"> <path fill="#019b7f" opacity="1.00" d=" M 331.97 2.44 C 335.38 2.75 338.51 0.86 341.92 0.98 C 361.30 1.02 380.68 1.00 400.06 0.99 C 401.47 1.00 402.86 1.30 404.23 1.63 C 408.32 2.80 412.69 1.81 416.76 3.14 C 423.15 5.26 430.06 4.31 436.49 6.31 C 440.99 7.69 445.77 7.92 450.21 9.54 C 454.94 11.35 460.18 11.04 464.85 13.06 C 469.68 15.09 474.73 16.47 479.67 18.20 C 488.30 22.25 497.46 25.25 505.52 30.46 C 512.60 33.72 518.94 38.28 525.39 42.62 C 536.87 50.98 547.99 60.13 556.69 71.45 C 559.88 74.97 563.05 78.55 565.38 82.72 C 567.68 86.94 571.77 89.88 573.71 94.32 C 576.10 99.28 577.95 104.49 580.66 109.30 C 584.15 115.29 585.38 122.22 588.56 128.35 C 591.45 137.50 593.89 146.82 595.93 156.20 C 596.72 164.46 598.19 172.69 597.99 181.02 C 597.68 185.82 600.39 190.24 599.93 195.05 C 599.64 201.68 599.64 208.33 599.93 214.96 C 600.36 220.15 597.59 224.92 597.85 230.12 C 598.14 238.67 594.98 246.73 593.86 255.11 C 592.26 264.69 588.27 273.66 586.13 283.11 C 584.38 288.18 581.22 292.65 579.65 297.81 C 578.25 302.46 575.72 306.64 574.14 311.22 C 571.97 318.43 566.66 324.16 564.38 331.35 C 563.13 335.65 561.10 339.66 558.79 343.48 C 555.40 348.86 554.26 355.30 551.04 360.78 C 549.49 363.43 548.50 366.36 547.42 369.23 C 545.52 374.44 542.15 379.01 540.71 384.40 C 539.77 388.05 538.71 391.67 537.36 395.20 C 535.38 400.25 535.67 405.81 534.04 410.95 C 531.58 419.05 531.73 427.62 531.86 436.00 C 531.54 444.99 532.03 454.25 535.45 462.68 C 538.05 468.72 540.22 475.24 544.98 480.01 C 548.99 483.99 553.00 487.98 556.97 492.02 C 564.05 497.88 572.97 500.74 581.70 503.19 C 587.56 505.39 593.86 505.50 600.00 506.21 C 605.71 506.86 611.38 505.48 617.07 505.16 C 628.28 503.77 638.61 498.96 649.11 495.10 C 656.34 492.11 662.47 487.15 668.92 482.83 C 676.77 476.36 683.44 468.50 688.84 459.89 C 694.44 449.12 698.54 437.24 698.50 424.98 C 698.41 418.67 698.78 412.34 698.23 406.05 C 697.75 400.50 695.09 395.44 691.85 391.03 C 688.64 386.72 683.52 384.62 679.00 382.06 C 670.28 377.22 659.26 378.08 650.66 382.72 C 646.76 384.73 644.19 389.15 639.50 389.50 C 633.67 390.89 629.18 385.09 628.30 379.94 C 630.63 374.39 633.29 368.92 636.78 364.00 C 643.46 354.63 654.19 349.07 665.12 346.26 C 675.41 344.36 686.48 344.21 696.14 348.74 C 703.71 351.18 709.85 356.35 716.43 360.59 C 718.89 362.45 720.20 365.37 722.35 367.55 C 728.11 373.61 731.96 381.18 735.05 388.88 C 738.49 395.99 739.99 403.81 742.00 411.40 L 742.00 455.33 C 740.01 461.73 738.62 468.28 737.87 474.93 C 735.63 483.11 733.15 491.24 730.41 499.27 C 727.37 506.92 722.60 513.75 719.68 521.45 C 718.46 524.71 715.74 527.02 713.94 529.93 C 712.15 532.75 710.55 535.77 707.97 537.97 C 703.41 541.81 701.50 548.00 696.35 551.26 C 691.69 554.22 687.72 558.05 683.98 562.06 C 689.09 562.34 694.21 562.14 699.33 562.37 C 693.92 563.24 688.45 562.38 683.02 562.71 C 679.78 564.31 677.27 567.05 674.16 568.88 C 669.68 570.99 665.91 574.31 661.38 576.31 C 657.51 578.06 654.13 580.75 650.12 582.19 C 643.08 584.77 636.36 588.29 629.01 589.93 C 623.09 591.33 616.98 590.97 610.96 591.00 C 554.32 591.00 497.69 591.00 441.05 591.00 C 430.88 590.89 420.69 591.31 410.53 590.61 C 410.30 590.35 409.82 589.83 409.59 589.57 C 407.81 587.27 405.86 585.13 403.83 583.07 C 402.62 583.05 401.41 583.04 400.21 583.04 C 398.40 586.53 395.32 589.70 395.58 593.91 C 395.58 597.90 394.83 602.32 397.20 605.84 C 401.40 613.27 409.06 617.69 416.45 621.41 C 425.22 625.74 434.48 629.05 442.99 633.91 C 446.41 635.92 450.39 636.87 453.55 639.35 C 458.84 643.39 464.34 647.38 468.34 652.79 C 469.92 655.18 470.97 657.89 472.69 660.20 C 475.10 663.70 475.89 667.95 477.32 671.88 C 477.83 680.29 477.72 688.76 477.22 697.17 C 476.06 700.07 475.03 703.02 474.29 706.08 C 472.93 709.63 471.20 712.99 469.00 716.10 C 466.50 721.01 462.41 724.73 458.45 728.45 C 455.28 731.07 451.50 732.81 448.31 735.40 C 447.70 735.49 446.48 735.67 445.88 735.76 C 445.88 738.24 442.97 737.19 441.48 737.80 C 439.11 739.89 435.76 739.80 433.10 741.36 C 427.99 742.19 422.85 742.98 417.65 743.00 L 398.41 743.00 C 392.21 742.75 385.96 742.73 379.89 741.29 C 378.04 739.82 375.68 739.60 373.43 739.31 C 372.12 737.85 370.25 737.47 368.39 737.32 C 367.76 736.75 367.14 736.20 366.53 735.65 C 365.95 735.54 364.81 735.32 364.23 735.21 C 360.76 732.86 356.91 730.89 354.51 727.30 C 353.23 718.45 352.73 709.34 354.33 700.50 C 355.43 699.52 356.48 698.47 357.76 697.72 C 361.05 697.19 363.35 699.95 366.32 700.72 C 366.69 701.12 367.44 701.90 367.81 702.29 C 368.34 702.42 369.38 702.68 369.91 702.81 C 370.86 704.18 372.39 704.62 373.96 704.89 C 374.29 705.23 374.93 705.90 375.25 706.24 C 378.98 707.04 382.15 709.46 386.03 709.79 C 389.14 712.41 393.78 710.59 396.96 713.27 C 402.92 713.33 408.89 713.59 414.85 713.21 C 417.90 711.31 421.71 711.62 424.78 709.77 C 429.19 707.82 432.28 704.01 435.35 700.46 C 435.42 699.80 435.57 698.48 435.64 697.83 C 436.24 696.99 436.85 696.17 437.46 695.35 C 437.64 691.30 437.76 687.22 437.30 683.18 C 435.30 681.16 435.01 678.06 432.88 676.12 C 425.68 668.34 415.68 663.80 405.91 660.24 C 405.53 659.82 404.76 658.97 404.37 658.55 C 403.69 658.52 402.33 658.47 401.65 658.45 C 400.93 657.81 400.21 657.18 399.50 656.55 C 398.87 656.48 397.61 656.33 396.98 656.26 C 396.60 655.87 395.85 655.10 395.47 654.71 C 386.13 650.34 376.88 645.16 369.71 637.60 C 368.37 633.50 364.73 630.77 363.03 626.86 C 361.02 622.41 358.46 617.96 358.40 612.94 C 358.04 607.59 355.96 602.20 357.37 596.84 C 358.21 593.96 358.41 590.97 358.61 588.01 C 359.62 581.90 362.98 576.58 365.47 571.02 C 360.77 571.59 355.85 572.21 351.79 574.83 C 348.10 577.07 344.39 579.33 341.18 582.24 C 337.92 585.05 334.87 588.33 330.82 590.01 C 327.20 591.32 323.26 590.96 319.49 591.07 C 319.26 595.90 319.39 600.74 319.53 605.58 C 319.23 627.38 319.48 649.20 319.40 671.01 C 319.67 678.85 318.48 686.62 318.44 694.46 C 315.96 697.07 316.66 700.72 316.09 703.95 C 313.37 713.04 309.90 722.27 303.01 729.07 C 298.71 733.79 293.06 737.00 287.24 739.44 C 282.90 741.35 278.13 741.69 273.61 743.00 L 247.63 743.00 C 243.02 741.94 238.29 741.36 233.93 739.43 C 229.12 738.28 224.72 734.27 224.57 729.11 C 224.18 720.73 224.32 712.33 224.57 703.95 C 224.43 701.73 225.50 699.52 227.38 698.34 C 230.26 697.72 233.19 698.59 235.67 700.06 C 239.76 702.44 244.44 703.45 249.01 704.45 C 253.46 705.34 257.87 703.86 262.07 702.58 C 264.78 701.79 266.56 699.38 268.23 697.26 C 270.60 694.29 270.74 690.37 271.79 686.87 C 272.45 684.63 272.77 682.30 272.72 679.98 C 272.64 670.66 272.90 661.34 272.34 652.03 C 272.37 631.81 272.26 611.59 272.40 591.37 C 268.63 590.96 264.84 590.92 261.06 590.99 C 215.36 591.02 169.67 590.98 123.98 591.01 C 117.95 591.07 111.89 590.12 106.27 587.88 C 94.12 582.93 82.24 577.27 70.74 570.98 C 69.58 570.57 68.51 570.00 68.10 568.77 C 65.13 568.26 63.75 565.25 61.22 563.94 C 56.01 561.30 53.10 555.89 48.07 553.02 C 44.30 550.83 41.35 547.52 39.08 543.83 C 36.54 539.85 32.56 537.04 30.08 533.01 C 26.75 527.60 22.73 522.57 20.28 516.65 C 17.83 510.68 13.56 505.62 11.62 499.43 C 8.92 491.28 6.23 483.10 4.19 474.76 C 3.22 468.29 2.07 461.84 0.00 455.62 L 0.00 410.66 C 1.81 404.78 3.05 398.73 5.09 392.91 C 6.22 389.60 8.11 386.62 9.33 383.35 C 11.68 376.96 15.68 371.29 20.52 366.54 C 22.67 363.02 25.52 360.05 29.27 358.24 C 36.36 352.71 44.53 348.60 53.20 346.19 C 60.66 344.21 68.49 345.07 76.03 346.10 C 87.92 348.84 99.64 355.14 106.39 365.63 C 109.43 370.27 112.34 375.43 112.51 381.11 C 112.61 385.44 108.95 389.00 104.88 389.74 C 98.93 389.48 95.18 383.99 89.79 382.22 C 85.31 380.63 80.74 378.98 75.96 378.71 C 67.92 378.75 60.65 382.78 54.17 387.17 C 50.46 389.79 47.97 393.72 45.98 397.72 C 43.29 403.78 43.37 410.54 43.50 417.03 C 43.36 424.45 43.66 431.89 44.92 439.21 C 45.71 444.22 48.37 448.64 49.76 453.47 C 52.77 463.08 60.50 469.93 66.22 477.90 C 68.18 480.95 71.50 482.54 74.31 484.66 C 79.42 489.47 85.92 492.33 91.76 496.13 C 106.18 502.49 122.13 506.76 137.99 504.99 C 143.83 503.92 149.99 504.87 155.61 502.66 C 162.28 500.05 169.46 498.97 176.01 495.99 C 180.79 494.04 184.76 490.67 189.32 488.32 C 194.07 485.92 196.76 481.07 200.62 477.59 C 206.17 470.83 209.51 462.55 211.91 454.21 C 213.13 450.17 212.65 445.85 213.85 441.81 C 214.68 438.74 216.00 435.48 214.65 432.35 C 212.33 426.64 213.42 420.40 212.19 414.49 C 209.72 400.66 204.08 387.73 199.38 374.59 C 198.34 369.26 194.83 364.98 193.13 359.92 C 191.78 354.43 187.97 350.05 186.27 344.70 C 183.35 335.92 177.46 328.55 174.15 319.93 C 170.38 309.89 165.77 300.21 161.85 290.23 C 157.30 280.59 154.94 270.15 151.77 260.03 C 149.95 255.80 148.48 251.41 148.07 246.80 C 147.56 241.17 146.04 235.71 144.89 230.19 C 143.77 225.28 144.72 220.16 143.50 215.27 C 142.81 212.56 141.92 209.84 142.05 207.00 C 142.33 200.35 142.38 193.68 142.08 187.03 C 141.65 181.90 144.48 177.17 144.06 172.03 C 143.70 163.55 146.04 155.31 147.41 147.02 C 147.99 139.97 150.55 133.34 152.34 126.55 C 153.34 122.57 155.37 118.98 156.84 115.18 C 159.55 109.15 161.69 102.86 165.23 97.23 C 170.72 88.77 176.08 80.18 182.26 72.20 C 189.69 64.35 196.90 56.15 205.77 49.87 C 213.12 42.81 222.11 37.79 230.96 32.84 C 242.16 25.10 255.29 20.99 267.72 15.72 C 280.42 12.13 293.25 9.03 306.12 6.16 C 311.47 4.45 317.24 5.32 322.56 3.49 C 325.59 2.46 328.78 2.14 331.97 2.44 M 295.85 102.61 C 294.68 104.95 291.18 103.87 290.22 106.42 C 287.04 106.55 285.67 109.90 283.66 111.85 C 283.15 113.55 282.52 115.22 281.51 116.69 C 281.55 117.85 281.29 118.93 280.72 119.91 C 280.27 129.95 280.57 140.01 280.48 150.06 C 280.57 264.73 280.32 379.41 280.61 494.08 C 282.21 495.86 283.38 498.64 286.12 498.70 C 287.35 501.42 290.66 500.11 292.87 501.32 C 297.04 503.20 301.67 502.49 306.09 502.88 C 307.82 503.39 309.61 503.70 311.43 503.48 L 312.00 505.59 L 312.56 503.46 C 320.35 503.71 328.16 503.68 335.95 503.42 C 337.58 503.27 339.40 503.66 340.88 502.77 C 343.06 502.57 345.26 502.51 347.46 502.54 L 347.59 501.54 C 348.92 501.80 350.00 501.52 350.81 500.68 C 352.50 500.19 355.71 501.37 355.69 498.68 C 358.76 499.06 359.26 495.60 361.29 494.15 C 361.71 492.81 362.04 491.43 362.20 490.03 C 362.31 440.47 362.08 390.90 362.31 341.34 C 375.98 341.46 389.64 341.36 403.31 341.40 L 403.98 340.02 L 404.73 341.36 C 431.31 341.53 457.90 341.19 484.48 341.53 L 484.51 340.51 C 487.55 340.75 491.54 339.23 491.73 335.73 C 492.09 335.58 492.81 335.26 493.18 335.10 C 493.48 332.53 494.55 330.09 494.47 327.47 L 495.51 327.55 C 495.24 322.32 496.74 317.22 496.35 312.00 C 496.09 306.68 496.90 301.27 495.85 296.02 C 495.58 293.84 495.56 291.64 495.61 289.45 L 494.61 289.47 C 494.57 287.12 493.92 284.85 493.44 282.56 C 491.22 282.68 491.69 280.23 491.25 278.77 C 488.89 278.38 487.50 275.94 484.92 276.18 C 484.45 276.05 483.51 275.79 483.04 275.66 C 442.60 275.46 402.15 275.83 361.71 275.48 C 361.66 239.83 361.74 204.19 361.66 168.54 C 405.85 168.19 450.04 168.54 494.23 168.37 C 495.55 167.32 497.06 166.48 498.23 165.25 C 498.44 164.11 499.12 163.47 500.27 163.34 C 500.41 161.39 500.98 159.46 502.44 158.07 C 503.03 155.93 501.66 152.83 503.52 151.26 C 503.85 141.02 504.03 130.75 503.50 120.51 C 501.92 117.62 502.94 113.99 502.35 110.82 C 501.98 110.64 501.23 110.27 500.86 110.08 C 500.97 106.52 498.29 103.96 495.26 102.61 C 493.86 102.37 492.38 102.41 491.10 101.74 C 428.68 101.56 366.26 101.74 303.85 101.65 C 301.59 103.18 298.46 102.15 295.85 102.61 Z" /> </g> <g id="#ffffffff"> <path fill="#ffffff" opacity="1.00" d=" M 295.85 102.61 C 298.46 102.15 301.59 103.18 303.85 101.65 C 366.26 101.74 428.68 101.56 491.10 101.74 C 492.38 102.41 493.86 102.37 495.26 102.61 C 498.29 103.96 500.97 106.52 500.86 110.08 C 501.23 110.27 501.98 110.64 502.35 110.82 C 502.94 113.99 501.92 117.62 503.50 120.51 C 504.03 130.75 503.85 141.02 503.52 151.26 C 501.66 152.83 503.03 155.93 502.44 158.07 C 500.98 159.46 500.41 161.39 500.27 163.34 C 499.12 163.47 498.44 164.11 498.23 165.25 C 497.06 166.48 495.55 167.32 494.23 168.37 C 450.04 168.54 405.85 168.19 361.66 168.54 C 361.74 204.19 361.66 239.83 361.71 275.48 C 402.15 275.83 442.60 275.46 483.04 275.66 C 483.51 275.79 484.45 276.05 484.92 276.18 C 487.50 275.94 488.89 278.38 491.25 278.77 C 491.69 280.23 491.22 282.68 493.44 282.56 C 493.92 284.85 494.57 287.12 494.61 289.47 L 495.61 289.45 C 495.56 291.64 495.58 293.84 495.85 296.02 C 496.90 301.27 496.09 306.68 496.35 312.00 C 496.74 317.22 495.24 322.32 495.51 327.55 L 494.47 327.47 C 494.55 330.09 493.48 332.53 493.18 335.10 C 492.81 335.26 492.09 335.58 491.73 335.73 C 491.54 339.23 487.55 340.75 484.51 340.51 L 484.48 341.53 C 457.90 341.19 431.31 341.53 404.73 341.36 L 403.98 340.02 L 403.31 341.40 C 389.64 341.36 375.98 341.46 362.31 341.34 C 362.08 390.90 362.31 440.47 362.20 490.03 C 362.04 491.43 361.71 492.81 361.29 494.15 C 359.26 495.60 358.76 499.06 355.69 498.68 C 355.71 501.37 352.50 500.19 350.81 500.68 C 350.00 501.52 348.92 501.80 347.59 501.54 L 347.46 502.54 C 345.26 502.51 343.06 502.57 340.88 502.77 C 339.40 503.66 337.58 503.27 335.95 503.42 C 328.16 503.68 320.35 503.71 312.56 503.46 L 312.00 505.59 L 311.43 503.48 C 309.61 503.70 307.82 503.39 306.09 502.88 C 301.67 502.49 297.04 503.20 292.87 501.32 C 290.66 500.11 287.35 501.42 286.12 498.70 C 283.38 498.64 282.21 495.86 280.61 494.08 C 280.32 379.41 280.57 264.73 280.48 150.06 C 280.57 140.01 280.27 129.95 280.72 119.91 C 281.29 118.93 281.55 117.85 281.51 116.69 C 282.52 115.22 283.15 113.55 283.66 111.85 C 285.67 109.90 287.04 106.55 290.22 106.42 C 291.18 103.87 294.68 104.95 295.85 102.61 Z" /> </g> <g id="#019b7f80"> <path fill="#019b7f" opacity="0.50" d=" M 661.38 576.31 C 665.91 574.31 669.68 570.99 674.16 568.88 C 668.22 575.25 659.53 577.60 652.45 582.34 C 640.01 587.49 627.66 593.08 614.53 596.30 C 608.95 598.85 602.67 598.67 596.99 600.84 C 594.02 601.91 590.75 601.48 587.79 602.58 C 578.16 606.47 567.36 604.15 557.66 607.79 C 557.51 608.30 557.21 609.31 557.06 609.81 C 561.09 614.16 565.28 618.35 569.29 622.71 C 576.02 627.24 581.85 632.92 588.30 637.83 C 592.62 640.86 597.27 643.40 601.72 646.24 C 604.64 648.24 608.27 648.78 611.18 650.82 C 617.13 654.84 624.15 656.71 630.81 659.23 C 635.66 661.07 640.85 661.43 645.93 662.25 C 651.35 663.03 656.68 661.39 662.09 661.30 C 670.23 659.79 678.05 656.92 685.78 654.00 C 689.00 652.21 691.88 649.87 695.08 648.03 C 708.00 639.56 717.12 626.44 723.68 612.69 C 725.42 609.48 727.70 606.60 729.36 603.34 C 732.66 603.43 737.09 602.44 739.08 605.90 C 740.69 607.65 739.83 610.75 742.00 612.00 L 742.00 626.84 C 738.92 631.40 741.49 637.11 739.65 642.02 C 736.61 650.25 736.04 659.28 731.94 667.14 C 730.19 671.11 727.39 674.45 725.35 678.25 C 722.45 684.41 716.27 687.89 711.53 692.46 C 703.84 699.51 694.13 703.66 684.52 707.36 C 680.35 708.66 676.25 710.40 671.84 710.73 C 667.43 711.16 663.47 713.57 659.00 713.67 C 654.32 714.41 649.61 714.48 644.90 714.74 C 637.69 716.38 630.29 715.18 622.98 715.64 C 612.89 716.19 603.00 713.49 592.94 713.56 C 587.65 713.42 583.00 710.33 577.68 710.23 C 565.10 706.99 552.80 702.66 540.47 698.55 C 531.28 694.08 521.65 690.47 512.98 684.99 C 504.94 681.47 498.21 675.77 490.75 671.25 C 485.22 667.07 478.69 664.08 474.33 658.52 C 473.80 658.43 472.76 658.24 472.24 658.15 C 472.35 658.66 472.58 659.69 472.69 660.20 C 470.97 657.89 469.92 655.18 468.34 652.79 C 464.34 647.38 458.84 643.39 453.55 639.35 C 450.39 636.87 446.41 635.92 442.99 633.91 C 434.48 629.05 425.22 625.74 416.45 621.41 C 409.06 617.69 401.40 613.27 397.20 605.84 C 394.83 602.32 395.58 597.90 395.58 593.91 C 395.32 589.70 398.40 586.53 400.21 583.04 C 401.41 583.04 402.62 583.05 403.83 583.07 C 405.86 585.13 407.81 587.27 409.59 589.57 C 407.51 587.81 405.53 585.94 403.79 583.85 C 402.66 583.94 401.54 584.05 400.42 584.16 C 396.54 590.67 394.39 599.39 398.55 606.30 C 402.99 613.57 410.92 617.58 418.30 621.26 C 427.63 625.56 437.14 629.46 446.18 634.37 C 444.52 630.14 440.91 627.35 438.17 623.91 C 432.80 617.56 427.79 610.91 422.26 604.69 C 420.14 602.40 418.78 599.56 416.95 597.06 C 415.00 594.72 412.51 592.91 410.53 590.61 C 420.69 591.31 430.88 590.89 441.05 591.00 C 497.69 591.00 554.32 591.00 610.96 591.00 C 616.98 590.97 623.09 591.33 629.01 589.93 C 636.36 588.29 643.08 584.77 650.12 582.19 C 654.13 580.75 657.51 578.06 661.38 576.31 Z" /> <path fill="#019b7f" opacity="0.50" d=" M 70.74 570.98 C 82.24 577.27 94.12 582.93 106.27 587.88 C 111.89 590.12 117.95 591.07 123.98 591.01 C 169.67 590.98 215.36 591.02 261.06 590.99 C 264.84 590.92 268.63 590.96 272.40 591.37 C 272.26 611.59 272.37 631.81 272.34 652.03 C 272.90 661.34 272.64 670.66 272.72 679.98 C 272.77 682.30 272.45 684.63 271.79 686.87 C 270.74 690.37 270.60 694.29 268.23 697.26 C 266.56 699.38 264.78 701.79 262.07 702.58 C 257.87 703.86 253.46 705.34 249.01 704.45 C 244.44 703.45 239.76 702.44 235.67 700.06 C 233.19 698.59 230.26 697.72 227.38 698.34 C 225.50 699.52 224.43 701.73 224.57 703.95 C 224.32 712.33 224.18 720.73 224.57 729.11 C 224.72 734.27 229.12 738.28 233.93 739.43 C 238.29 741.36 243.02 741.94 247.63 743.00 L 239.60 743.00 C 234.91 739.80 227.70 739.89 225.03 734.11 C 221.23 722.96 222.25 710.83 224.61 699.47 C 225.63 698.47 226.66 697.46 227.67 696.46 C 233.19 697.00 237.75 700.45 242.90 702.19 C 248.87 703.03 255.00 702.95 260.99 702.25 C 265.55 700.53 268.27 696.00 269.85 691.61 C 272.45 680.62 271.29 669.27 271.57 658.07 C 270.87 658.21 269.46 658.49 268.75 658.63 C 263.25 663.93 256.93 668.25 250.54 672.39 C 245.31 676.75 239.02 679.45 233.47 683.33 C 225.62 687.11 217.87 691.08 210.11 695.06 C 205.09 697.73 199.51 699.00 194.25 701.09 C 187.14 704.52 179.55 706.96 171.78 708.32 C 165.73 710.71 159.18 711.01 152.99 712.88 C 145.13 714.89 136.95 714.06 129.02 715.55 C 119.65 715.54 110.25 715.77 100.89 715.42 C 92.39 713.70 83.29 715.29 75.16 711.80 C 67.76 711.41 60.88 708.45 54.01 705.95 C 44.66 702.38 35.62 697.67 28.37 690.66 C 24.63 686.73 19.49 684.04 16.98 679.02 C 13.79 672.95 9.22 667.54 7.40 660.81 C 5.70 654.07 3.28 647.55 1.67 640.79 C 1.31 636.79 2.05 632.72 1.19 628.77 L 0.00 628.01 L 0.00 613.22 C 1.40 609.75 2.39 605.95 5.28 603.36 C 7.69 603.37 10.10 603.36 12.51 603.37 C 14.66 607.17 17.45 610.58 19.37 614.51 C 24.43 625.14 31.11 635.31 40.44 642.67 C 44.72 647.23 50.49 649.79 55.31 653.68 C 61.34 655.64 67.09 658.45 73.33 659.78 C 77.80 661.08 82.45 661.41 87.02 662.19 C 92.72 663.02 98.37 661.43 104.05 661.11 C 110.97 659.55 117.66 657.00 124.21 654.27 C 137.67 647.65 151.40 640.92 162.47 630.56 C 167.36 626.07 173.48 622.96 177.54 617.59 C 180.00 614.35 184.34 612.17 184.96 607.84 C 177.28 605.44 169.23 604.76 161.27 604.28 C 155.64 601.79 149.23 602.79 143.60 600.31 C 140.27 598.95 136.63 598.97 133.16 598.22 C 125.06 595.38 116.60 593.60 108.69 590.22 C 100.98 586.92 93.17 583.86 85.81 579.82 C 80.44 577.55 74.90 575.23 70.74 570.98 Z" /> <path fill="#019b7f" opacity="0.50" d=" M 351.79 574.83 C 355.85 572.21 360.77 571.59 365.47 571.02 C 362.98 576.58 359.62 581.90 358.61 588.01 C 358.41 590.97 358.21 593.96 357.37 596.84 C 355.96 602.20 358.04 607.59 358.40 612.94 C 358.46 617.96 361.02 622.41 363.03 626.86 C 364.73 630.77 368.37 633.50 369.71 637.60 C 364.80 632.65 361.35 626.40 358.87 619.95 C 358.68 616.12 356.19 612.87 356.44 609.00 C 355.93 602.97 356.25 596.94 356.68 590.92 C 357.75 586.39 359.63 582.09 360.87 577.61 C 361.99 576.09 362.79 574.39 363.13 572.53 C 352.93 573.72 344.21 580.17 337.05 587.14 C 335.05 588.80 332.41 589.68 330.86 591.87 C 327.31 596.62 323.17 600.89 319.53 605.58 C 319.39 600.74 319.26 595.90 319.49 591.07 C 323.26 590.96 327.20 591.32 330.82 590.01 C 334.87 588.33 337.92 585.05 341.18 582.24 C 344.39 579.33 348.10 577.07 351.79 574.83 Z" /> <path fill="#019b7f" opacity="0.50" d=" M 316.09 703.95 C 316.66 700.72 315.96 697.07 318.44 694.46 C 317.40 700.01 316.90 705.75 314.73 711.02 C 311.93 720.54 305.65 728.73 297.94 734.85 C 292.80 737.77 287.72 741.05 281.83 742.22 L 282.98 743.00 L 273.61 743.00 C 278.13 741.69 282.90 741.35 287.24 739.44 C 293.06 737.00 298.71 733.79 303.01 729.07 C 309.90 722.27 313.37 713.04 316.09 703.95 Z" /> </g> </svg> --------------------------------------------------------------------------------------------------------------------------- <---- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/logo.svg --------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/main.js ----> --------------------------------------------------------------------------------------------------------------------------- // TODO: you will implement this! const electron = require('electron'); const app = electron.app const BrowserWindow = electron.BrowserWindow;app.commandLine.appendSwitch('--enable-experimental-web-platform-features'); const fs = require('fs'); const path = require('path'); const jQuery = require('jquery'); const username = require('username'); var sudo = require('sudo-prompt'); var DecompressZip = require('decompress-zip'); let mainWindow = null app.on('ready', () => { console.log('The application is ready.') mainWindow = new BrowserWindow({icon: 'icon.png', frame: false}) mainWindow.loadURL('file://' + path.join(__dirname, 'framlr.html')) mainWindow.on('closed', function() { mainWindow = null }) }) --------------------------------------------------------------------------------------------------------------------------- <---- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/main.js --------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/manifest.webapp ----> --------------------------------------------------------------------------------------------------------------------------- { "id": "framework", "application": "app", "name": "FrameworkJS", "description": "The framework for the Web 3.0", "linux_icon": "", "ime_default_softkey_bar": true, "launch_path": "/index.html", "type": "privileged", "icons": { "56": "/notes/icon_56.png", "_comment1": "<< KaiOS icon", "60": "/notes/icon_60.png", "64": "/notes/icon_64.png", "84": "/notes/icon_84.png", "_comment2": "<< KaiOS icon", "112": "/notes/icon_112.png", "_comment3": "<< KaiOS icon", "128": "/notes/icon_128.png", "512": "/notes/icon_512.png" }, "version": "3", "developer": { "name": "Daniella Mesquita", "url": "https://daniellmesquita.eth.link/" }, "locales": { "en-US": { "name": "FrameworkJS", "description": "The framework for the Web 3.0" } }, "floflispackager": { "exportsfolder": "." }, "default_locale": "en-US", "author": "plasmmer", "url": "index.html", "icon": "logo.svg", "width": "700", "height": "450", "default_locale": "en-US", "cursor": true } --------------------------------------------------------------------------------------------------------------------------- <---- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/manifest.webapp --------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/package.json ----> --------------------------------------------------------------------------------------------------------------------------- { "name": "HTML5AppsPlatformPackager", "no_proxy_server": false, "disable_http_cache": false, "ignore_certificate_errors": false, "main": "main.js", "main_html": "index.html", "window": { "exe_icon": "logo.png", "kiosk": false, "resizable": true, "y": 100, "skip_taskbar": false, "show": true, "title_bar_style": "default", "title": "HTML5AppsPlatform and Floflis Packager", "max_width": "", "mac_icon": "logo.png", "min_height": "", "dark_theme": false, "use_content_size": false, "transparent": true, "min_width": "", "background_color": "#000000", "auto_hide_menu_bar": true, "enable_larger_than_screen": false, "width": 800, "x": 100, "frame": true, "icon": "logo.png", "height": 600, "type": "desktop", "always_on_top": false, "max_height": "", "accept_first_mouse": false, "disable_auto_hide_cursor": false, "fullscreen": false, "center": true }, "proxy_bypass_list": "", "js_flags": "", "ppapi_flash_path": "", "web": { "text_areas_are_resizable": true, "experimental_features": false, "direct_write": true, "images": true, "allow_displaying_insecure_content": false, "preload": "", "node_integration": true, "webgl": true, "zoom_factor": 100, "allow_running_insecure_content": false, "web_security": true, "webaudio": true, "experimental_canvas_features": false, "partition": "", "plugins": false, "blink_features": "", "javascript": true }, "disable_renderer_backgrounding": false, "user_agent": "", "app_name": "HTML5AppsPlatform and Floflis Packager", "ppapi_flash_version": "", "ssl_version_fallback_min": "", "description": "", "remote_debugging_port": "", "proxy_server": "", "host_resolver_rules": "", "log_net_log": "", "webkit": { "plugin": false, "java": false, "page-cache": false }, "ignore_connections_limit": "", "web_preferences": {}, "version": "1.0.0", "proxy_pac_url": "", "cipher_suite_blacklist": "", "chromium_args": "", "host_rules": "", "inject_js_end": "", "inject_js_start": "", "client_certificate": "", "dependencies": { "base64-img": "^1.0.4", "dat-node": "^3.5.15", "decompress-zip": "^0.2.2", "electron": "^4.0.0", "fs-extra": "^3.0.1", "fullname": "^4.0.1", "jquery": "^3.2.1", "sudo-prompt": "^9.0.0", "username": "^5.1.0" }, "devDependencies": { "electron-packager": "^13.0.0" }, "scripts": { "start": "electron .", "build": "electron-packager . central --platform=linux --arch=x64,ia32 --overwrite --app-version=1.0.0 --electron-version=4.2.12 --icon=icon.png" } } --------------------------------------------------------------------------------------------------------------------------- <---- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/package.json --------------------------------------------------------------------------------------------------------------------------- package (test Floflis Packager validation).json --------------------------------------------------------------------------------------------------------------------------- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/platform-kaios.js ----> --------------------------------------------------------------------------------------------------------------------------- document.querySelector("#head").innerHTML += `<link rel="stylesheet" type="text/css" href="css/root.css">`; document.querySelector("#head").innerHTML += `<link rel="stylesheet" type="text/css" href="css/header.css">`; document.querySelector("#head").innerHTML += `<link rel="stylesheet" type="text/css" href="css/softkey.css">`; function handleKeyDown(evt) { switch (evt.key) { case 'SoftLeft': // Action case press left key softkeyCallback.left(); break; case 'SoftRight': // Action case press right key softkeyCallback.right(); break; case 'Enter': // Action case press center key softkeyCallback.center(); break; } }; document.addEventListener('keydown', handleKeyDown); --------------------------------------------------------------------------------------------------------------------------- <---- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/platform-kaios.js --------------------------------------------------------------------------------------------------------------------------- --------------------------------------------------------------------------------------------------------------------------- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/platform-kaios-custom.js ----> --------------------------------------------------------------------------------------------------------------------------- document.querySelector("#placefirst").innerHTML += `<header><span>FrameworkJS r3</span></header>`; document.querySelector("#body").innerHTML += `<style>#landinglogo{margin-top:13px}</style>`; //var insertheaderfirst = document.getElementById('body'); //insertheaderfirst.insertBefore(document.createElement("header"), container.firstChild); //insertheaderfirst.insertBefore(document.TextNode("<header><span>FrameworkJS r3</span></header>"), container.firstChild); // This type of JS isn't supported on KaiOS //document.querySelector("#body").innerHTML += `<div class="statusbar-placeholder"></div><header class="fm-header h1"><span>FrameworkJS r3</span></header>`; document.querySelector("#body").innerHTML += `<footer class="softkey"><div id="softkey-left">Back</div><div id="softkey-center">RELOAD</div><div id="softkey-right">More</div></footer>`; document.querySelector("#body").innerHTML += `<style>h1{font-size:25px}span{font-size:12px}h2{font-size:20px}</style>`; document.querySelector("#landinglogo").innerHTML = `<img width="50px" src="logo.svg"/>`; document.querySelector("#landingtitle").innerHTML = ``; const softkeyCallback = { left: function() { window.close() }, center: function() { document.location.reload(true) }, right: function() { console.log('You click on SoftRight') } }; --------------------------------------------------------------------------------------------------------------------------- <---- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/platform-kaios-custom.js --------------------------------------------------------------------------------------------------------------------------- platform-not-kaios.js platform-not-kaios-custom.js --------------------------------------------------------------------------------------------------------------------------- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/platform-not-kaios-not-firefox.js ----> --------------------------------------------------------------------------------------------------------------------------- var OSName="Unknown OS"; if (navigator.userAgent.indexOf("Altaica")!=-1) OSName="Altaica"; if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows"; if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS"; if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX"; if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux"; // using these directly from index.js says OSName is undefined; have to fix it var envlogtxt = "Environment detected: " // also had to place it again; fix like in the previous // from https://ourcodeworld.com/articles/read/390/how-to-know-if-your-application-is-running-in-cordova-or-a-web-browser if(window.hasOwnProperty("cordova")){ console.log(envlogtxt +"Cordova."); var environmenttext = document.getElementById('environment'); var text = document.createTextNode(OSName); environmenttext.appendChild(text); } // Or if(typeof(cordova) == "object"){ console.log(envlogtxt +"Cordova."); var environmenttext = document.getElementById('environment'); var text = document.createTextNode(OSName); environmenttext.appendChild(text); } // Or if(!!window.cordova){ console.log(envlogtxt +"Cordova."); var environmenttext = document.getElementById('environment'); var text = document.createTextNode(OSName); environmenttext.appendChild(text); } // from https://ourcodeworld.com/articles/read/390/how-to-know-if-your-application-is-running-in-cordova-or-a-web-browser var userAgent = navigator.userAgent.toLowerCase(); if (userAgent.indexOf(' electron/') > -1) { console.log(envlogtxt +"Electron⚛"); var environmenttext = document.getElementById('environment'); var text = document.createTextNode("Electron⚛"); environmenttext.appendChild(text); } if(OSName == 'Altaica'){ console.log(envlogtxt +OSName +"."); var environmenttext = document.getElementById('environment'); var text = document.createTextNode(OSName); environmenttext.appendChild(text); } if("file:" == document.location.protocol) { console.log(envlogtxt +"File protocol; Local page."); //document.querySelector("#environment").innerHTML = `File protocol; Local page.`; } if("localhost:" == document.location.protocol) { console.log(envlogtxt +"Localhost."); //document.querySelector("#environment").innerHTML = `Localhost`; } if("ipfs:" == document.location.protocol){console.log(envlogtxt +"IPFS.");} if(window.location.href.match(/ba(.*)\.ipfs\./)){console.log(envlogtxt +"IPFS.");} if(window.location.href.indexOf("/ipfs/Qm") > -1){console.log(envlogtxt +"IPFS.");} if(window.location.href.indexOf("/ipfs/ba") > -1){console.log(envlogtxt +"IPFS.");} if((navigator.userAgent.indexOf("Opera") || navigator.userAgent.indexOf('OPR')) != -1 ) { alert('Opera'); } else if(navigator.userAgent.indexOf("Chrome") != -1 ) { alert('Chrome'); /* document.querySelector("#environment").innerHTML = `Chrome`; */ } else if(navigator.userAgent.indexOf("Safari") != -1) { alert('Safari'); } else if(navigator.userAgent.indexOf("Firefox") != -1 ) { //alert('Firefox'); } else if((navigator.userAgent.indexOf("MSIE") != -1 ) || (!!document.documentMode == true )) //IF IE > 10 { alert('IE'); } else { alert('unknown'); } //function setInnerHTML(element, content) { // element.innerHTML = content; // return element; //} if(typeof(cordova) !== "object"){ if (OSName !== 'Altaica'){ if (userAgent.indexOf(' electron/') <= -1){ document.querySelector("#splashloader").innerHTML = ``; console.log(envlogtxt +"Not mobile and not desktop app."); var environmenttext = document.getElementById('environment'); var text = document.createTextNode("Not mobile and not desktop app."); environmenttext.appendChild(text); requirejs(["platform-not-mobile-not-desktop.js"],function(util){}); requirejs(["platform-not-mobile-not-desktop-custom.js"],function(util){}); } } } --------------------------------------------------------------------------------------------------------------------------- <---- /media/daniell/B/git/FrameworkJavascript/Framework.js/r3/app/platform-not-kaios-not-firefox.js --------------------------------------------------------------------------------------------------------------------------- platform-not-mobile-not-desktop.js platform-not-mobile-not-desktop-custom.js require.js