Add snapshot of release-1.0.3 sources

This commit is contained in:
Mohamed Hegazy
2014-07-12 15:32:26 -07:00
parent 99ec3a9688
commit 79727ee12f
13130 changed files with 2079574 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
===== TypeScript Sample: AMD Module =====
=== Overview ===
This sample shows a simple Typescript application using an AMD module.
=== Running ===
tsc --module amd app.ts
start default.htm
+8
View File
@@ -0,0 +1,8 @@
body
{
font-family: 'Segoe UI', sans-serif
}
span {
font-style: italic
}
+5
View File
@@ -0,0 +1,5 @@
import model = require("greeter")
var el = document.getElementById('content');
var greeter = new model.Greeter(el);
greeter.start();
+15
View File
@@ -0,0 +1,15 @@
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>TypeScript HTML App</title>
<link rel="stylesheet" href="app.css" type="text/css" />
<script data-main="app" type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.1/require.min.js"></script>
</head>
<body>
<h1>TypeScript HTML App</h1>
<div id="content"></div>
</body>
</html>
+25
View File
@@ -0,0 +1,25 @@
export class Greeter
{
element: HTMLElement;
span: HTMLElement;
timerToken: number;
constructor (element: HTMLElement)
{
this.element = element;
this.element.innerText += "The time is: ";
this.span = document.createElement('span');
this.element.appendChild(this.span);
this.span.innerText = new Date().toUTCString();
}
start()
{
this.timerToken = setInterval(() => this.span.innerText = new Date().toUTCString(), 500);
}
stop()
{
clearTimeout(this.timerToken);
}
}