2017-03-29 3 views
-8

私はこのスクリプトを所有していませんが、javascriptやhtml以外に書かれているかどうか不思議です。このようなスクリプトを書く場所がありますか?もしそうなら、あなたはどんなウェブサイトにしてもいいですか?本当にありがとう。このスクリプトはjavascriptとhtmlでのみ書かれていますか?

<script> 
 
function login() 
 
{ 
 
var username=$('#loginusername').val(); 
 
var password=$('#loginpassword').val(); 
 
document.getElementById("logindiv").style.display="none"; 
 
document.getElementById("loginimage").style.display="inline"; 
 
var xmlhttp; 
 
if (window.XMLHttpRequest) 
 
    {// code for IE7+, Firefox, Chrome, Opera, Safari 
 
    xmlhttp=new XMLHttpRequest(); 
 
    } 
 
else 
 
    {// code for IE6, IE5 
 
    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); 
 
    } 
 
xmlhttp.onreadystatechange=function() 
 
    { 
 
    if (xmlhttp.readyState==4 && xmlhttp.status==200) 
 
    { 
 
    document.getElementById("logindiv").innerHTML=xmlhttp.responseText; 
 
\t document.getElementById("loginimage").style.display="none"; 
 
\t document.getElementById("logindiv").style.display="inline"; 
 
\t if (xmlhttp.responseText.search("Redirecting") != -1) 
 
\t { 
 
\t setInterval(function(){window.location="index.php"},3000); 
 
    } 
 
    } 
 
    } 
 
xmlhttp.open("POST","ajax/login.php?type=login",true); 
 
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded"); 
 
xmlhttp.send("username=" + username + "&password=" + password); 
 
} 
 
</script> 
 
<!DOCTYPE html> 
 
<html lang="en"> 
 
    <head>   
 
\t <meta charset="UTF-8"> 
 
    <title>Chither.com The best Slither and Agar.io bots service</title> 
 
    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
 
    <link rel="icon" type="image/png" href="/favicon.png" /> 
 
\t <meta name="Description" content="free bots, best experience, without lags, Slither.io bots - Best Bots for Slither, agar.io bots - Best Bots for agar.io" /> 
 
\t <meta name="Author" content="" /> 
 
\t <meta name="Reply-To" content="" /> 
 
\t <meta name="Robots" content="all" /> 
 
\t <meta name="Rating" content="general" /> 
 
\t <meta name="Keywords" content="Slither.io, chither, Slither bot, Slitherbots, Slither bots, Slitherio bots, Chither.com, hacks, cheats, free, bots, Slitheriobots, Slitherio bots, Slither.io bots, Bot, Worms, Worm, Bots, Worms, support, best, lagfree, Slither, agar.io, agar bot, agarbots, agar bots, agario bots, hacks, cheats, free, bots, agariobots, agario bots, agar.io bots, Bot, Minion, Bots, Minions, support, best, lagfree, agar, mass bot" /> 
 
    <link href="css/bootstrap.min.css" rel="stylesheet"> 
 
    <link href="font-awesome/css/font-awesome.css" rel="stylesheet"> 
 
    <!-- Toastr style --> 
 
    <link href="css/plugins/toastr/toastr.min.css" rel="stylesheet"> 
 
    <!-- Gritter --> 
 
    <link href="js/plugins/gritter/jquery.gritter.css" rel="stylesheet"> 
 
    <link href="css/animate.css" rel="stylesheet"> 
 
    <link href="css/style.css" rel="stylesheet"> \t 
 
    <!-- Mainly scripts --> 
 
    <script src="js/jquery-2.1.1.js"></script> 
 
    <script src="js/bootstrap.min.js"></script> 
 
    <script type="text/javascript" src="js/plugins/jquery-validation/jquery.validate.min.js"></script> 
 
\t <script type="text/javascript" src="js/plugins/mcustomscrollbar/jquery.mCustomScrollbar.min.js"></script> 
 
    <script type="text/javascript" src="js/plugins.js"></script>   
 
    <script type="text/javascript" src="js/demo.js"></script> 
 
    <script type="text/javascript" src="js/actions.js"></script> \t \t 
 
\t 
 
    <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> 
 
    <script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script> 
 
    <!-- Flot --> 
 
    <script src="js/plugins/flot/jquery.flot.js"></script> 
 
    <script src="js/plugins/flot/jquery.flot.tooltip.min.js"></script> 
 
    <script src="js/plugins/flot/jquery.flot.spline.js"></script> 
 
    <script src="js/plugins/flot/jquery.flot.resize.js"></script> 
 
    <script src="js/plugins/flot/jquery.flot.pie.js"></script> 
 
    <!-- Peity --> 
 
    <script src="js/plugins/peity/jquery.peity.min.js"></script> 
 
    <script src="js/demo/peity-demo.js"></script> 
 
    <!-- Custom and plugin javascript --> 
 
    <script src="js/inspinia.js"></script> 
 
    <script src="js/plugins/pace/pace.min.js"></script> 
 
    <!-- jQuery UI --> 
 
    <script src="js/plugins/jquery-ui/jquery-ui.min.js"></script> 
 
    <!-- GITTER --> 
 
    <script src="js/plugins/gritter/jquery.gritter.min.js"></script> 
 
    <!-- Sparkline --> 
 
    <script src="js/plugins/sparkline/jquery.sparkline.min.js"></script> 
 
    <!-- Sparkline demo data --> 
 
    <script src="js/demo/sparkline-demo.js"></script> 
 
    <!-- ChartJS--> 
 
    <script src="js/plugins/chartJs/Chart.min.js"></script> 
 

 
<script> 
 
    (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ 
 
    (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), 
 
    m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 
 
    })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); 
 

 
    ga('create', 'UA-77344643-1', 'auto'); 
 
    ga('send', 'pageview'); 
 

 
</script> 
 
<script type="text/javascript"> 
 
    window.cookieconsent_options = {"message":"This website uses cookies to ensure you get the best experience on our website","dismiss":"Got it!","learnMore":"More info","link":"","theme":"dark-bottom"}; 
 
</script> 
 
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.10/cookieconsent.min.js"></script> 
 
    <!-- Toastr --> 
 
    <!--<script src="js/plugins/toastr/toastr.min.js"></script>--> 
 
    </head> 
 
\t <body class="gray-bg"> 
 
\t <!--<body style="background-image: url(http://slither.io/s/bg45.jpg); background-repeat: repeat;">--> 
 
\t \t <div class="middle-box text-center loginscreen animated fadeInDown"> 
 
\t \t \t <div> 
 
\t \t \t \t <div> 
 

 
\t \t \t \t \t <!--<h1 class="logo-name">CHITHER.COM</h1>--> 
 
\t \t \t \t \t <img src="logo.png"/> 
 

 
\t \t \t \t </div> 
 
\t \t \t \t <!--<h3>Welcome to Chither.com</h3>--> 
 
\t \t \t \t <p>Login in</p> 
 
\t \t \t \t <div class="m-t"> 
 
\t \t \t \t <div id="logindiv" style="display:none"></div> 
 
\t \t \t \t <img id="loginimage" src="img/ajax-loader.gif" style="display:none"/> 
 
         <div class="form-group">       
 
          <input type="text" name="username" id="loginusername" class="form-control" placeholder="Username" value=""/> 
 
         </div> 
 
         <div class="form-group">       
 
          <input type="password" name="password" id="loginpassword" class="form-control" placeholder="Password" value=""/> 
 
         </div> 
 
\t \t \t \t \t \t <div class="pull-left"> 
 
          <a href="http://chither.com/tos.php">By logging in, you agree to our ToS</a> 
 
         </div> 
 
\t \t \t \t \t \t <br /><br /> 
 
\t \t \t \t \t <button class="btn btn-primary block full-width m-b" type="button" onclick="login()">Sign in</button> 
 

 
\t \t \t \t \t <!--<a href="#"><small>Forgot password?</small></a>--> 
 
\t \t \t \t \t <p class="text-muted text-center"><small>Do not have an account?</small></p> 
 
\t \t \t \t \t <button class="btn btn-sm btn-white btn-block" onClick="location.href='register.php'">Create an account</button> 
 
\t \t \t \t </div> 
 
\t \t \t \t <p class="m-t"> <small>© All Rights Reserved Chither.com 2017</small> </p> 
 
\t \t \t </div> 
 
\t \t </div> 
 
\t \t <!-- Mainly scripts --> 
 
     <script type="text/javascript"> 
 
     $("#signinForm").validate({ 
 
\t \t rules: { 
 
\t \t \t login: "required", 
 
\t \t \t password: "required" 
 
\t \t }, 
 
\t \t messages: { 
 
\t \t \t firstname: "Please enter your login", 
 
\t \t \t lastname: "Please enter your password" \t \t \t 
 
\t \t } 
 
\t });    
 
     </script> 
 
    </body> 
 
</html>

+1

これらを書き込む場所ですか?これは...テキストエディタです。それとも私は誤解しましたか? –

+0

はい。それはまた、jQueryとプラグインのトンと呼ばれるjavascriptライブラリを使用していますが、彼らはすべてのジャバスクリプトです今日の終わりに。また、いくつかのCSSファイルも含まれています。 (そして、c0dekidが指摘しているように、Ajaxを使用し、phpファイルを参照しているので、サーバサイドの問題もあります) – AtheistP3ace

+0

'JavaScript'、コアの一部のJavaScriptとajaxリクエストのjavascript –

答えて

0

はいこの "スクリプトは" のみHTMLとJavaScriptで記述されたが、それは、複数のプラグインやフレームワークを使用します。これはリンクhrefとscriptタグで定義されます。たとえば、ブートストラップはフロントエンド(ページの外観)フレームワークであり、JqueryはJavascriptフレームワークです。

PHP(例:index.php)やCSSスタイル(例:リンクhref = "css/style.css" rel = "stylesheet")などの他のファイルを参照しています。これらのCSSファイルがなければ、サイトの外観と機能は同じになりません。

HTMLを書き込む最も簡単な方法は、メモ帳にあり、.htmlとして安全です。あなたはそれらを好みのブラウザで開くことができます。チュートリアルを開始するにはW3Schoolsをお勧めします。たとえば、Jsのチュートリアルはhttps://www.w3schools.com/js/またはhtml:https://www.w3schools.com/html/

関連する問題