Menu

[3e9889]: / index.html  Maximize  Restore  History

Download this file

116 lines (95 with data), 3.8 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html>
<head>
<meta name="author" content="Carsten Pfeffer">
<meta name="copyight" content="(c)2012 Carsten Pfeffer">
<meta name="language" content="en">
<meta name="keywords" content="Python, learning Python, emscripten, cpython, codemirror, empythoned, python training, web ide">
<meta name="description" content="Browser side Python training suite">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title> Think Python </title>
<link rel="stylesheet" href="main.css" type="text/css">
<link rel="stylesheet" href="index.css" type="text/css">
<script src="jquery.js"></script>
<script src="main.js"></script>
<script language="JavaScript">
<!--
button_img = new Image();
button_hover = new Image();
button_img.src = "img/button.svg";
button_hover.src = "img/button_hover.svg";
function goToTraining()
{
showDialog();
}
function goToIDE()
{
window.location = "ide.html";
}
var TrainingEntry = function(name, title, description)
{
this.name = name;
this.title = title;
this.description = description;
}
var trainingsets = [];
// initializa AJAX
var XMLHttpRequestObject = false;
if (window.XMLHttpRequest) {
XMLHttpRequestObject = new XMLHttpRequest();
} else if (window.ActiveXObject) {
XMLHttpRequestObject = new ActiveXObject("Microsoft.XMLHTTP");
}
// get the available training sets
if(XMLHttpRequestObject) {
XMLHttpRequestObject.overrideMimeType("application/json");
XMLHttpRequestObject.open("GET", "trainingsets.list");
XMLHttpRequestObject.onreadystatechange = function()
{
if (XMLHttpRequestObject.readyState == 4 && XMLHttpRequestObject.status == 200) {
doc = XMLHttpRequestObject.responseText;
// set the global object for the training set
trainingsets = jQuery.parseJSON(doc);
var output = "";
for(var i=0; i < trainingsets.length; i++)
{
output += "<a class=\"choiceEntry\" href=\"training.html?set="+ trainingsets[i].name +"\"> ";
output += "<p class=\"listitemTitle\">"+ trainingsets[i].title +"</p>";
output += trainingsets[i].description + "</a>\n";
}
document.getElementById("listbox").innerHTML = output;
}
}
}
XMLHttpRequestObject.send(null);
-->
</script>
</head>
<body>
<div id="maincontainer">
<img src="img/thinkpython.svg" id="titleimage"/>
<span class="button" style="top: 50px; left: 60px;"
onmouseover="this.style.backgroundImage='url(img/button_hover.svg)'"
onmouseout="this.style.backgroundImage='url(img/button.svg)'"
onclick="goToTraining()">
Start Training</span>
<span class="button" style="top: -32px; left: 440px; margin-bottom: -31px;"
onmouseover="this.style.backgroundImage='url(img/button_hover.svg)'"
onmouseout="this.style.backgroundImage='url(img/button.svg)'"
onclick="goToIDE()">
Start IDE</span>
<div class="footerparagraph">
This Website is in interactive learning environment for Python. Read the <a href="about.html">about page</a>
for more info.<br/>
Project Website: <a href="http://www.sourceforge.net/projects/thinkpython" target="_blank">
http://www.sourceforge.net/projects/thinkpython</a>.
</div>
</div>
<div id="overlay"></div>
<div id="dialog">
<h3>Please select a Training Set:</h3>
<div id="listbox"></div>
<button id="cancel" onclick="closeDialog()">Cancel</button>
</div>
</body>
</html>
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.