Пример #1
0
                console.log("Email: " + profile.getEmail());
                
                document.getElementById("getstarted").style.visibility = "visible";
                document.getElementById("getstartedB").disabled = "";
                
            }
        </script>
        
        <script>
          function signOut() {
              var auth2 = gapi.auth2.getAuthInstance();
              auth2.signOut().then(function () {
                  console.log("User signed out.");
                  document.getElementById("getstarted").style.visibility = "hidden";
                  document.getElementById("getstartedB").disabled = "disbled";
                  document.getElementById("options").style.visibility = "hidden";
              });
          }
        </script>
  
';
$mainPanel = "\n      \n    <div id='main'>\n      <div id='welcome'>\n      <h1>Welcome to RealTC, <br />\n      a browser plugin which will allow for you and all your friends to collaborate in one single workspace!</h1>\n      </div>\n      \n      <div id='getstarted' style='visibility:hidden'>\n        <h3>To get started, click on the button below!</h3>\n        <button type='button' id='getstartedB' onclick='document.getElementById(\"options\").style.visibility = \"visible\"' disabled='disabled'>Get Started</button>\n        <div id='options' style='visibility:hidden'>\n          <table style='width: 100%'>\n            <tr style='width: 100%'>\n              <th class='col-xs-4 col-md-4 col-lg-4' style='text-align: center;width: 33%'>\n                <p>Collab with Paint!<br />\n                <a href='/realtc/paintEditor/index.php'><button type='button' id='paintCollab'>Paint!</button></a></p>\n              </th>\n              <th>  \n                <p>Listen to Music Together<br />\n                <a href='/realtc/musicStreaming/index.php'><button type='button' id='musicCollab'>Share Music!</button></a>\n              </th>\n              <th>\n                <p>Watch Videos Together!<br />\n                <a href='/realtc/videoStreaming/index.php'><button type='button' id='videoCollab'>Share Media!</button></a></p>\n              </th>\n            </tr>\n          </table>\n        </div>\n      </div>\n      \n      <table id='line2'>\n      <tr>\n        <th width='250px'>\n          <div id='about'>\n            <h3>About (Us, The Application and Our Dream)</h3>\n            <a href='about.html'><button id='about' type='button'>About</button></a>\n          </div>\n        </th>\n        <th width='250px'>\n          <div id='funding'>\n            <h4>To donate any money for whatsoever reason, <br/>click on the button below!</h4>\n            <p>And thanks :)</p>\n            <a href='/realtc/signin/donate.php'><button type='button' onclick='donate.html' >Donate Us</button></a>\n          </div>\n        </th>\n      </tr>\n      </table>\n    </div>\n";
$bodyPanel = "\n    <div id='side'>\n    <div id='loginup'>\n          <div class='g-signin2' data-onsuccess='onSignIn'></div>\n          <a href='#' onclick='signOut();'><img src='/realtc/images/g-signout.jpg' width='150' height='25' alt='Sign out'></a>\n        </div>\n    " . $googleSignIn . "\n    </div>\n";
headTemplate("Login", "Login", "./landing.css", "./loginjs.php");
bodyTemplate($mainPanel, $bodyPanel);
?>

<form action="" method="post" style="width: 100%;text-align: center">
    
</form>
Пример #2
0
<?php

/**
 * Created by PhpStorm.
 * User: ProDigy SML
 * Date: 8/15/2015
 * Time: 6:23 PM
 */
//error_reporting(-1);
//ini_set('display_errors', 'On');
require_once '../headTemplate.php';
headTemplate("Music Streaming", "Music Streaming", null, "includes.php");
?>


<body>
<div id='main' style='visibility:visible' disabled=''>
<script src="https://togetherjs.com/togetherjs-min.js"></script>
<a onclick="TogetherJS(this); return false;"><img src="https://togetherjs.com/images/start-togetherjs-blue.png" style="width: 135px" /></a>
<div id='side'>
      <div id='loginup'>
            <div class='g-signin2' data-onsuccess='onSignIn'></div>
            <a href='#' onclick='signOut();'>Sign out</a>
          </div>
      </div>
  <?php 
echo "<select name='files' onchange='changeMusicTrack(this.value)'>";
$files = array_map("htmlspecialchars", scandir("..\\upload\\"));
foreach ($files as $file) {
    $ext = substr($file, -3);
    echo $ext;