add main-site

This commit is contained in:
GZod01 2023-03-25 10:29:34 +01:00
parent 0bcf58c844
commit 0a3a77a9ff
52 changed files with 11206 additions and 0 deletions

View file

@ -0,0 +1,24 @@
<h1>USCPM</h1>
An updated version of Super Chrono Portal Maker Original game by Maxime Euzi&egravere &amp Anders Kaare (see xem.github.io), Remake by GZod01 <br>
<a href="/uscpm/beta">VERSION BETA</a><br><a href="/uscpm">VERSION STABLE</a><br>
If you can't finish the level, press the WIN! button For saving maked levels in the "play" menu levels click the save button For sharing levels or importing click the corresponding buttons <br>
The hash characters: <br>
{<br>
"enable-yellow": "9",<br>
"disable-yellow": ":", <br>
"time-machhine-top": "F", <br>
"time-machine-bottom": "G", <br>
"brick": "3", <br>
"breakable-brick": "5", <br>
"cloud": "=", <br>
"yellow-button": ";", <br>
"box": "&lt", <br>
"steel-brick-for-portals": "4", <br>
"flag": "2", <br>
"coins": "6", <br>
"pics": "7", <br>
"moving-platform": "?", <br>
"ice": "8"<br>
} <br>

File diff suppressed because one or more lines are too long

2034
main-site/uscpm/beta.html Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,17 @@
{
"enable-yellow": "9",
"disable-yellow": ":",
"time-machhine-top": "F",
"time-machine-bottom": "G",
"brick": "3",
"breakable-brick": "5",
"cloud": "=",
"yellow-button": ";",
"box": "<",
"steel-brick-for-portals": "4",
"flag": "2",
"coins": "6",
"pics": "7",
"moving-platform": "?",
"ice": "8"
}

2030
main-site/uscpm/index.html Normal file

File diff suppressed because one or more lines are too long

21
main-site/uscpm/play.bat Normal file
View file

@ -0,0 +1,21 @@
echo checking internet connection
Ping www.google.fr -n 1 -w 1000
cls
if errorlevel 1 (set internet="Not connected to internet") else (set internet="Connected to internet")
echo %internet%
if %internet% == "Connected to internet" (
echo "<script>let url = 'http://gzod01.fr/uscpm/index.html'; fetch(url).then((response) => {if (!response.ok) {throw new Error(`HTTP error: ${response.status}`);};return response.text();}).then((text) => poemDisplay.textContent = text).catch((error) => poemDisplay.textContent = `Could not fetch verse: ${error}`);</script>" > ".\uscpm.html"
echo "do"
start "" ".\uscpm.html"
)
else (
if exist ".\uscpm.html" (
start "" ".\uscpm.html"
) else (
msg "%USERNAME%" "Sorry, your computer can't access to internet and the USCPM file doesn't exist, if the error persist create an issue in the github: https://github.com/gzod01/uscpm"
rem echo "x=msgbox("Sorry, your computer can't access to internet and the USCPM file doesn't exist, if the error persist create an issue in the github: https://github.com/gzod01/uscpm", Button+Icon, "ERROR USCPM")" > .\message.vbs
rem .\message.vbs
rem del .\message.vbs
)
)

View file

@ -0,0 +1,19 @@
<form>
<input type="text" name="text" id="text" onkeyup="showindiv()">
</form>
<div id="content"></div>
<script>
window.onload= function(){
if(document.getElementById('text').value ===''){}
else{
let text = document.getElementById('text').value
let ntext = text.replace('\n','<br>')
document.getElementById('content').innerHTML = ntext
}
}
function showindiv(){
let text = document.getElementById('text').value
let ntext = text.replace('\n','<br>')
document.getElementById('content').innerHTML = ntext
}
</script>