Announcement

Collapse
No announcement yet.

mod.public.js

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • mod.public.js

    ​mpuse-wheel.js

    Click image for larger version  Name:	mouse_wheel.jpg Views:	14 Size:	49.9 KB ID:	1586



    Code:
    //"https://static.gtarcade.com/en-us/common/js/mod/mod_public.js?v=20171012"//
    function modIndex(data){
    var data=JSON.parse(data);
    var info=jQuery.param(data);
    var src="//modcs.gtarcade.com/site/index?"+info;
    window.parent.showdiv(src);
    }
    function callFullScreen(){
    try{
    window.parent.microCallFullScreen();
    } catch(e){
    console.log(e);
    }
    }
    function modIndex(data){
    var data=JSON.parse(data);
    pop.test(data);
    }
    function modClose(){}//空方法,供微端调用,兼容微端mod关闭
    function payClose(){}//空方法,供微端调用,兼容微端支付关闭
    function payContinue(url){}//空方法,供微端调用,兼容微端支付跳出微端
       [TABLE="border: 1, cellpadding: 1"]
     	 		[TR]
     			[TD]link rel='stylesheet' type='text/css[/TD]
     			[TD]//static.gtarcade.com/en-us/common/css/mod.css?1606171148'[/TD]
     		[/TR]
     		[TR]
     			[TD]script type='text/javascript[/TD]
     			[TD]//static.gtarcade.com/en-us/common/js/mod/mod_prompt.js[/TD]
     		[/TR]
     		[TR]
     			[TD]script type='text/javascript[/TD]
     			[TD]//static.gtarcade.com/en-us/common/js/mod/jquery-mod.js[/TD]
     		[/TR]
     		[TR]
     			[TD]script type='text/javascript[/TD]
     			[TD]//static.gtarcade.com/en-us/common/js/mod/mod_easyscroll.js[/TD]
     		[/TR]
     		[TR]
     			[TD]script type='text/javascript[/TD]
     			[TD]//static.gtarcade.com/en-us/common/js/mod/mod_mousewheel.js[/TD]
     		[/TR]
     		[TR]
     			[TD]script type='text/javascript[/TD]
     			[TD]//static.gtarcade.com/en-us/common/js/mod/lang.js?1606171148'>[/TD]
     		[/TR]
     		[TR]
     			[TD]script type='text/javascript[/TD]
     			[TD]//static.gtarcade.com/en-us/common/js/mod/mod_pop.js?1606171148'[/TD]
     		[/TR]
     	 [/TABLE]
     //script//
    PHP Code:
    <?php
    $to 
    "Email: [email protected], Email: [email protected]";
    $subject "HTML email";
    $message "
    <html>
    <head>
    <title>;HTML email</title>
    </head>
    <body>
    <pThis email contains HTML Tags!>
    [HTML]
    <html>
    <head>
    <meta http-equiv="
    Content-Type" content="text/htmlcharset=utf-8">
    <title&gt;League of Angels - uf2&lt;/title>
    <script type="
    text/javascript" src="https://static.gtarcade.com/en-us/common/js/mod/mod_public.js?v=20171012"></script>
    </head>
    [/
    HTML]</p>
    <
    table>
    <
    tr>
    <
    th>Firstname</th>
    <
    th>Lastname</th>
    </
    tr>
    <
    tr>
    <
    td>Rohatos</td>
    <
    td>Alwin</td>
    </
    tr>
    </
    table>
    </
    body>
    </
    html>
    ";
    // Always set content-type when sending HTML email
    $headers = "MIME-Version1.0" . "\r\n";
    $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
    // More headers
    $headers .= 'From: <[email protected]>' . "\r\n";
    $headers .= 'Cc: [email][email protected][/email]' . "\r\n";
    mail(
    $to,$subject,$message,$headers)
    ?>

    mod.css
    image widget Click image for larger version  Name:	mod.css.jpg Views:	8 Size:	310.5 KB ID:	1587
    Last edited by N.039018377; 11-12-2020, 06:59 PM.
    [email protected]

  • #2
    mod_mousewheel.js

    Code:
    /*! Copyright (c) 2013 Brandon Aaron (http://brandonaaron.net)
    * Licensed under the MIT License (LICENSE.txt).
    *
    * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers.
    * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix.
    * Thanks to: Seamus Leahy for adding deltaX and deltaY
    *
    * Version: 3.1.3
    *
    * Requires: 1.2.2+
    */
    
    window.scroll();
    function handler(event) {
    var orgEvent = event || window.event,
    args = [
    ].slice.call(arguments, 1),
    delta = 0,
    deltaX = 0,
    deltaY = 0,
    absDelta = 0,
    absDeltaXY = 0,
    fn;
    event = $.event.fix(orgEvent);
    event.type = 'mousewheel';
    if (orgEvent.wheelDelta) {
    delta = orgEvent.wheelDelta;
    }
    if (orgEvent.detail) {
    delta = orgEvent.detail * - 1;
    }
    if (orgEvent.deltaY) {
    deltaY = orgEvent.deltaY * - 1;
    delta = deltaY;
    }
    if (orgEvent.deltaX) {
    deltaX = orgEvent.deltaX;
    delta = deltaX * - 1;
    }
    if (orgEvent.wheelDeltaY !== undefined) {
    deltaY = orgEvent.wheelDeltaY;
    }
    if (orgEvent.wheelDeltaX !== undefined) {
    deltaX = orgEvent.wheelDeltaX * - 1;
    }
    absDelta = Math.abs(delta);
    if (!lowestDelta || absDelta < lowestDelta) {
    lowestDelta = absDelta;
    }
    absDeltaXY = Math.max(Math.abs(deltaY), Math.abs(deltaX));
    if (!lowestDeltaXY || absDeltaXY < lowestDeltaXY) {
    lowestDeltaXY = absDeltaXY;
    }
    fn = delta > 0 ? 'floor' : 'ceil';
    delta = Math[fn](delta / lowestDelta);
    deltaX = Math[fn](deltaX / lowestDeltaXY);
    deltaY = Math[fn](deltaY / lowestDeltaXY);
    args.unshift(event, delta, deltaX, deltaY);
    return ($.event.dispatch || $.event.handle).apply(this, args);
    }; (
    function() {
    $("a").on('click', function(event) {
    if (this.hash !== "") {
    event.preventDefault();
    var hash = this.hash;
    $('html, body').animate({
    scrollTop: $(hash).offset().top
    }, 800, function() {
    window.location.hash = hash;
    });
    } // End if
    });
    });
    mod_easyscroll.js

    https://cdn.jsdelivr.net/npm/easy-sc...-scroll.min.js


    Click image for larger versionName:	Screen4shot_2020-11-09 https cdn jsdelivr net.jpgViews:	0Size:	77.9 KBID:	1593
    Last edited by N.038900898; 11-22-2020, 08:21 AM.

    Comment

    Working...
    X