View ainsley.exe.js
var ainsley = {
exe: function() {
var egg = document.createElement('img');
egg.src = 'https://pbs.twimg.com/profile_images/644222149092331520/SdBxbA4X.jpg';
egg.setAttribute('style', 'position: fixed; top: 50%; left: 50%; z-index: 999999; transform: translate(-50%, -50%);');
document.body.appendChild(egg);
setTimeout(function() {
document.body.removeChild(egg);
}, 500);
}
View Demo.cs
using UnityEngine;
using System;
public class Demo : MonoBehaviour {
void Start() {
new FB_Query("/me", callback);
}
public void callback(SimpleJSON.JSONNode result) {
View GeneralDirector.cs
using UnityEngine;
using System.Collections;
public class GeneralDirector : MonoBehaviour {
static public HTTP http;
public void Start () {
http = this.gameObject.GetComponent<HTTP> ();
}
}
View index.html
<nav id="mobile_menu">
<div class="level _show" id="1">
<a href="#11">Link 1 <i class="ion-ios-arrow-right -icon"></i></a>
<a href="/about">Link 2</a>
<a href="/about">Link 3</a>
<a href="/about">Link 4</a>
<a href="/about">Link 5</a>
</div>
<div class="level" id="11">