*** empty log message ***
This commit is contained in:
parent
e9564a0ed9
commit
c06fe05d52
|
@ -30,6 +30,7 @@ blockquote {font-family:"Trebuchet MS",helvetica,sans-serif; color:#004A66; font
|
|||
#divPageContent {border-top:3px solid #FF8000; border-bottom:3px solid #FF8000; padding:0px 0px 10px 0px; }
|
||||
#sideBarNewsContent {background-color:#EEE; padding:10px; }
|
||||
#newsHeader {height:22px; line-height:22px; color:#80FF00; font-family:"Trebuchet MS",helvetica,sans-serif; font-size:14px; padding:0px 5px 0px 5px; background-color:#004A66; border-bottom:1px solid #FFF; }
|
||||
#newsHeader a {};
|
||||
|
||||
.leftColumn { padding:0p 5px 0px 5px; width:170px;}
|
||||
.rightColumn {padding:0px 10px 10px 10px; border-left:1px dashed #CCC;}
|
||||
|
|
|
@ -8,12 +8,31 @@ $page_num++;
|
|||
$page[$page_num] = "News";
|
||||
$page_href[$page_num] = "news.php";
|
||||
$page_num++;
|
||||
/* Removed for now...
|
||||
$page[$page_num] = "Forums";
|
||||
$page_href[$page_num] = "http://torque-ide.sourceforge.net/phpbb";
|
||||
$page_href[$page_num] = "/phpbb";
|
||||
$page_num++;
|
||||
*/
|
||||
$page[$page_num] = "SourceForge Project";
|
||||
$page_href[$page_num] = "http://sourceforge.net/projects/torque-ide";
|
||||
$page_num++;
|
||||
|
||||
// This new method is kindof inefficient, but it *does* work...
|
||||
function getPageId()
|
||||
{
|
||||
global $page, $page_title;
|
||||
|
||||
if(in_array($page_title, $page))
|
||||
{
|
||||
for($i=1; $i < count($page); $i++)
|
||||
{
|
||||
if($page[$i] == $page_title)
|
||||
{
|
||||
return($i);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
|
@ -25,6 +44,37 @@ $page_num++;
|
|||
<meta name="keywords" content="Layout2, 404 creative studios" />
|
||||
<meta name="description" content="simple css driven layout" />
|
||||
<link href="boldblue2.css" type="text/css" rel="stylesheet" />
|
||||
<style type="text/css">
|
||||
.showstate{ /*Definition for state toggling image */
|
||||
cursor:hand;
|
||||
cursor:pointer;
|
||||
float: right;
|
||||
margin-top: -2px;
|
||||
margin-right: 3px;
|
||||
font-size: xx-large;
|
||||
}
|
||||
|
||||
.headers{
|
||||
width: 400px;
|
||||
font-size: 120%;
|
||||
font-weight: bold;
|
||||
border: 1px solid black;
|
||||
background-color: lightyellow;
|
||||
}
|
||||
|
||||
.switchcontent{
|
||||
border-top-width: 0;
|
||||
}
|
||||
</style>
|
||||
<script type="text/javascript" src="torque-ide.js">
|
||||
//<!--
|
||||
/***********************************************
|
||||
* Switch Content script II- © Dynamic Drive (www.dynamicdrive.com)
|
||||
* This notice must stay intact for legal use. Last updated April 2nd, 2005.
|
||||
* Visit http://www.dynamicdrive.com/ for full source code
|
||||
***********************************************/
|
||||
//-->
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="container">
|
||||
|
@ -38,6 +88,7 @@ $page_num++;
|
|||
<?php
|
||||
//<li><a href="index.php">Summary</a></li>
|
||||
//<li id="active"><a href="sourceforge.php" id="current">SourceForge Info</a></li>
|
||||
$page_id = getPageId();
|
||||
for($i=0; $i < count($page); $i++)
|
||||
{
|
||||
if($i == $page_id)
|
||||
|
@ -57,8 +108,8 @@ $page_num++;
|
|||
<tr>
|
||||
<td valign="top" class="leftColumn">
|
||||
<div id="sideBarNews">
|
||||
<div id="newsHeader">SourceForge.net</div>
|
||||
<div id="sideBarNewsContent">
|
||||
<div id="newsHeader"><a class="showstate" onClick="expandcontent(this, 'sideBarNewsContent')">-</a>SourceForge.net</div>
|
||||
<div id="sideBarNewsContent" class="switchcontent">
|
||||
<?php
|
||||
include('http://sourceforge.net/export/projhtml.php?group_id=128924&mode=full&no_table=1');
|
||||
?>
|
||||
|
|
|
@ -1,11 +1,13 @@
|
|||
<?php
|
||||
$page_id = 0;
|
||||
$page_title = "Summary";
|
||||
|
||||
include("./header.php");
|
||||
?>
|
||||
<h2>torque-ide Summary</h2>
|
||||
<p class="subHeader">What is this!?!</p>
|
||||
<p>The torque-ide is an Open Source TorqueSCRIPT editor written in C++ using the <a href="http://wxwidgets.org">wxWidgets (http://wxwidgets.org)</a> toolkit.</p>
|
||||
<p class="subHeader">What is TorqueSCRIPT</p>
|
||||
<p>TorqueSCRIPT is a scripting language use by the Torque Game Engine, Toruqe Shader Engine, and Torque2D. The Torque Engine is a product of GarageGames (<a href="http://garagegames.com">http://garagegames.com</a>)</p>
|
||||
<?php
|
||||
include("./footer.php");
|
||||
?>
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
$page_id = 1;
|
||||
$page_title = "News";
|
||||
|
||||
include("./header.php");
|
||||
?>
|
||||
|
|
|
@ -0,0 +1,124 @@
|
|||
// BEGIN - Switch Content Script
|
||||
/***********************************************
|
||||
* Switch Content script II- © Dynamic Drive (www.dynamicdrive.com)
|
||||
* This notice must stay intact for legal use. Last updated April 2nd, 2005.
|
||||
* Visit http://www.dynamicdrive.com/ for full source code
|
||||
***********************************************/
|
||||
|
||||
var enablepersist="on" //Enable saving state of content structure using session cookies? (on/off)
|
||||
var memoryduration="7" //persistence in # of days
|
||||
|
||||
//var contractsymbol='imgs/minus.gif' //Path to image to represent contract state.
|
||||
//var expandsymbol='imgs/plus.gif' //Path to image to represent expand state.
|
||||
var contractsymbol='-'
|
||||
var expandsymbol='+'
|
||||
|
||||
/////No need to edit beyond here //////////////////////////
|
||||
|
||||
function getElementbyClass(rootobj, classname){
|
||||
var temparray=new Array()
|
||||
var inc=0
|
||||
var rootlength=rootobj.length
|
||||
for (i=0; i<rootlength; i++){
|
||||
if (rootobj[i].className==classname)
|
||||
temparray[inc++]=rootobj[i]
|
||||
}
|
||||
return temparray
|
||||
}
|
||||
|
||||
function sweeptoggle(ec){
|
||||
var inc=0
|
||||
while (ccollect[inc]){
|
||||
ccollect[inc].style.display=(ec=="contract")? "none" : ""
|
||||
inc++
|
||||
}
|
||||
revivestatus()
|
||||
}
|
||||
|
||||
|
||||
function expandcontent(curobj, cid){
|
||||
if (ccollect.length>0){
|
||||
document.getElementById(cid).style.display=(document.getElementById(cid).style.display!="none")? "none" : ""
|
||||
//curobj.src=(document.getElementById(cid).style.display=="none")? expandsymbol : contractsymbol
|
||||
curobj.innerHTML=(document.getElementById(cid).style.display=="none")? expandsymbol : contractsymbol
|
||||
}
|
||||
}
|
||||
|
||||
function revivecontent(){
|
||||
selectedItem=getselectedItem()
|
||||
selectedComponents=selectedItem.split("|")
|
||||
for (i=0; i<selectedComponents.length-1; i++)
|
||||
document.getElementById(selectedComponents[i]).style.display="none"
|
||||
}
|
||||
|
||||
function revivestatus(){
|
||||
var inc=0
|
||||
while (statecollect[inc]){
|
||||
if (ccollect[inc].style.display=="none")
|
||||
statecollect[inc].src=expandsymbol
|
||||
else
|
||||
statecollect[inc].src=contractsymbol
|
||||
inc++
|
||||
}
|
||||
}
|
||||
|
||||
function get_cookie(Name) {
|
||||
var search = Name + "="
|
||||
var returnvalue = "";
|
||||
if (document.cookie.length > 0) {
|
||||
offset = document.cookie.indexOf(search)
|
||||
if (offset != -1) {
|
||||
offset += search.length
|
||||
end = document.cookie.indexOf(";", offset);
|
||||
if (end == -1) end = document.cookie.length;
|
||||
returnvalue=unescape(document.cookie.substring(offset, end))
|
||||
}
|
||||
}
|
||||
return returnvalue;
|
||||
}
|
||||
|
||||
function getselectedItem(){
|
||||
if (get_cookie(window.location.pathname) != ""){
|
||||
selectedItem=get_cookie(window.location.pathname)
|
||||
return selectedItem
|
||||
}
|
||||
else
|
||||
return ""
|
||||
}
|
||||
|
||||
function saveswitchstate(){
|
||||
var inc=0, selectedItem=""
|
||||
while (ccollect[inc]){
|
||||
if (ccollect[inc].style.display=="none")
|
||||
selectedItem+=ccollect[inc].id+"|"
|
||||
inc++
|
||||
}
|
||||
if (get_cookie(window.location.pathname)!=selectedItem){ //only update cookie if current states differ from cookie's
|
||||
var expireDate = new Date()
|
||||
expireDate.setDate(expireDate.getDate()+parseInt(memoryduration))
|
||||
document.cookie = window.location.pathname+"="+selectedItem+";path=/;expires=" + expireDate.toGMTString()
|
||||
}
|
||||
}
|
||||
|
||||
function do_onload(){
|
||||
uniqueidn=window.location.pathname+"firsttimeload"
|
||||
var alltags=document.all? document.all : document.getElementsByTagName("*")
|
||||
ccollect=getElementbyClass(alltags, "switchcontent")
|
||||
statecollect=getElementbyClass(alltags, "showstate")
|
||||
if (enablepersist=="on" && get_cookie(window.location.pathname)!="" && ccollect.length>0)
|
||||
revivecontent()
|
||||
if (ccollect.length>0 && statecollect.length>0)
|
||||
revivestatus()
|
||||
}
|
||||
|
||||
if (window.addEventListener)
|
||||
window.addEventListener("load", do_onload, false)
|
||||
else if (window.attachEvent)
|
||||
window.attachEvent("onload", do_onload)
|
||||
else if (document.getElementById)
|
||||
window.onload=do_onload
|
||||
|
||||
if (enablepersist=="on" && document.getElementById)
|
||||
window.onunload=saveswitchstate
|
||||
|
||||
// END - Switch Content Script [dynamicdrive.com]
|
Loading…
Reference in New Issue