123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <!--
- Copyright (c) 2016, 2024, 5 Mode's contributors
- All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions are met:
- * Redistributions of source code must retain the above copyright
- notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright
- notice, this list of conditions and the following disclaimer in the
- documentation and/or other materials provided with the distribution.
- * Neither 5 Mode nor the names of its contributors
- may be used to endorse or promote products derived from this software
- without specific prior written permission.
-
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY
- DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
- (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
- LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
- -->
- <!DOCTYPE html>
- <html lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1"/>
-
- <title>Objects do: an iconic js library!</title>
- <link rel="shortcut icon" href="./favicon.ico" />
- <meta name="description" content="Welcome to Objects do! Enjoy the library or contact us.."/>
- <meta name="keywords" content="5 Mode,object"/>
- <meta name="robots" content="index,follow"/>
- <meta name="author" content="5 Mode"/>
-
- <script src="./js/jquery-3.6.0.min.js" type="text/javascript"></script>
-
- <script src="./js/serialize-javascript.js" type="text/javascript"></script>
- <script src="./js/dropjs.js" type="text/javascript"></script>
-
- <link href="./css/style.css" type="text/css" rel="stylesheet">
-
- <script type="text/javascript">
- function myObj() {
-
- const s = "Hello World!";
-
- // Properties
- this.msg = s;
- this.start = mystart;
-
- // Methods
- function mystart() {
- alert(this.msg);
- }
-
- }
- function getObj(objName) {
- //alert("param"+objName);
- switch (objName) {
- case "myObj":
- thiss = new myObj();
- return thiss;
- }
- }
- </script>
- </head>
- <body style="margin-top:20px; padding-top:3%;">
- <div style="width:500px;margin:auto;">
- <pre style="width:300px; margin:auto; background: black; color: #FFFFFF; text-align:left">
-
- function myObj() {
-
- const s = "Hello World!";
-
- // Properties
- this.msg = s;
- this.start = mystart;
-
- // Methods
- function mystart() {
- alert(this.msg);
- }
-
- }
-
- </pre>
- <div style="float:left; text-align:center;" ondragover="onDragOver(event);" ondrop="onDrop(event);">
-
- <img src="./res/obj.png" style="width:300px" draggable="true" ondragstart="onDragStart(event);" onmouseover="onMouseOver();"><br><br>
-
- OBJECT: <input type="text" id="objName" name="objName" value="myObj">
-
- </div>
- <div style="float:left; width: 100px; margin-left:60px;">
-
- <br>
-
- <div style="width:fit-content; height:30px; background: orange; border: 2px solid darkorange; font-size: 16px; font-weight:900; text-align: center; padding-top: 8px;" ondragover="onDragOver(event);" ondrop="onDropJSON(event);">
- JSON
- </div>
-
- <br><br>
-
- <div style="width:fit-content; height:30px; background: orange; border: 2px solid darkorange; font-size: 16px; font-weight:900; text-align: center; padding-top: 8px;" ondragover="onDragOver(event);" ondrop="onDropJS(event);">
- Javascript
- </div>
- <br><br>
- <div style="width:fit-content; height:30px; background: orange; border: 2px solid darkorange; font-size: 16px; font-weight:900; text-align: center; padding-top: 8px;" ondragover="onDragOver(event);" ondrop="onDropINFO(event);">
- Info
- </div>
- <br><br>
- <div style="width:fit-content; height:40px; background: orange; border: 2px solid darkorange; font-size: 16px; font-weight:900; text-align: center; padding-top: 8px;" ondragover="onDragOver(event);" ondrop="onDropMoon(event);">
- Inject<br>Hello Moon
- </div>
-
- </div>
- </div>
- <!-- Yandex.Metrika counter -->
- <script type="text/javascript" >
- (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
- m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
- (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
- ym(86762230, "init", {
- clickmap:true,
- trackLinks:true,
- accurateTrackBounce:true
- });
- </script>
- <noscript><div><img src="https://mc.yandex.ru/watch/86762230" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
- <!-- /Yandex.Metrika counter -->
- </body>
- </html>
|