NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<?php
session_start();
if(!isset($_SESSION["input"])){$_SESSION["input"]=""; $_SESSION["strlength"]=0;}
if(!isset($_SESSION["display_table"])){$_SESSION["display_table"]="none";}
if(!isset($_SESSION["keyword"])){$_SESSION["keyword"]="<i>none</i>";}
?>
<html>
<head>
<title>C O L O R A D O</title>
<style>
body{margin:0; font-family:Arial;background-color:#A2A2A2}
#datainput{background:#2E2E2E;color:white; width:100%; height:25px; padding-top:3px;margin:0;position:fixed;z-index:1;}
#stats{background-color:#737373;padding-bottom:30px;margin-top:9px;z-index:0;}
.marked{color:#216B7E; text-decoration:italic;background-color:#ddd;}
#color_echo{width:85%;background-color:blue;}
.hexcolors{float:left;width:2;height:2;}
#output_display{background-color:#2D93AD;position:fixed;right:0;top:0;border-top:solid 1px #000;width:15%;height:85%;z-index:0;}
button{border:none;background-color:#000;}
.button_input {padding:2px;margin-left:-4.5px;height:22;}
.button_switch {padding:7px;margin-top:-3;}
input{height:22;border:solid 1.5px #000;}

::-webkit-input-placeholder{color:white;opacity:0.5;}
::-ms-input-placeholder{color:white;}
:-moz-placeholder{color:white;}
::-moz-placeholder{color:white;}
</style>


</head>
<body>
<form id="datainput" action="c5.php" method="POST">

<input style="background-color:#A49F52;" name="input" type="text" placeholder="Your input" maxlength="20">
<button class="button_input" style="color:#A49F52" name="confirm">Confirm</button>

<input style="width:55;background-color:#519872;" name="keyword" type="number" placeholder=" [0000]" min="0" max="9999">
<button class="button_input" style="color:#519872;" name="add">Add</button>
<button class="button_switch" style="color:#2D93AD;float:right;" name="switch">Switch</button>

</form><br>
<div id="stats">
<?php
// Display the table(or not)
if(isset($_POST["switch"]) && !empty($_SESSION["input"])==1){
if($_SESSION["display_table"]=="block"){$_SESSION["display_table"]="none";}
else{$_SESSION["display_table"]="block";}}

// Gets the data from both the text input & the password
if(isset($_POST["confirm"]) && !empty($_POST["input"])==1){$_SESSION["input"] = $_POST["input"];}
if(isset($_POST["confirm"]) && !empty($_POST["keyword"])==1){$_SESSION["keyword"] = $_POST["keyword"];}

$_SESSION["strlength"] = strlen($_SESSION["input"]);
echo "<table><tr><td>Keyword</td><td>: ".$_SESSION["keyword"]."</td></tr>";
echo " <tr><td>Input </td><td>: <span class='marked'>". $_SESSION["input"]."</span></td></tr>
<tr><td>Chars </td><td>: ".$_SESSION["strlength"]."</td></tr>";

echo "<table id='output_display' style='display:".$_SESSION['display_table'].";'><tr><th>Nr</th> <th>Input</th> <th>Output</th></tr>";

// Defines the stringlength, cuts it into seperate characters
for($x=0;$x<$_SESSION["strlength"];$x++){
$input = substr($_SESSION["input"],$x,1);
echo "<div class='inputloop'>";

// Sets the characters to 3 digit numbers (by multiplying it by 4)
$output = (ord($input))*4;
if(!isset($end)){$end = "";}

// Echo's the system output in a table (if wanted...)
$z=$x+1;
echo "<span><tr><td>$z</td> <td class='marked'>$input</td> <td>$output</td><tr></span>";

$_SESSION["end"] = $output;
$end .= $_SESSION["end"];

//Random Generator (to improve difficulty of decoding)
if($_SESSION["keyword"] != "<i>none</i>"){
$randominteger = rand(0,9);
for($rand=1; $rand<$_SESSION["keyword"]; $rand++){
$randominteger .= rand(0,9); }
$end .= $randominteger;}
// if(isset($end)){echo " --> $end ";}
}
echo "</table>";
if(isset($end)){
$_SESSION["end"] = $end;}
else{$_SESSION["end"]="";}
?>
</div>
</div>

<?php
//Displays the number code and the colorcode when isset on the button.
echo "<div id='color_echo'>";
$_SESSION["new"]=strlen($_SESSION["end"]);
for($x=0;$x<$_SESSION["new"];$x+=6){$hexcolor=substr($_SESSION["end"],$x,6);
echo "<div class='hexcolors' style='background-color:#$hexcolor'></div>";}
echo "</div>";
?>

<p style="right:10;bottom:0;position:fixed;margin-right;">CH-47-F</p>
</body>
</html>
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.