sa - PHP Online
Form of PHP Sandbox
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of sa.php
- <?php
- echo '<html><head>';
- echo '';
- echo '<link rel="stylesheet" href="css/bootstrap.min.css">';
- echo '<link rel="stylesheet" href="css/style.css">';
- echo '<link rel="shortcut icon" href="images/veldoryalogo.png" type="image/x-icon">';
- echo '<script type="text/javascript" src="js/jquery.min.js"></script>';
- echo '<script type="text/javascript" src="js/bootstrap.min.js"></script>';
- echo '<script type="text/javascript" src="js/js.cookie.js"></script>';
- echo '<title>Veldorya RGB</title>';
- echo '</head>';
- echo '';
- echo '<body id="bg" class="container" style="font-family: Quicksand;">';
- echo '';
- echo '<div id="hexColorTemplate" style="display:none;">';
- echo '<div class="row">';
- echo '<label for="color-$NUM">Renk #$NUM</label>';
- echo '<input class="form-control col-md-1 hexColor" id="color-$NUM" style="border-radius: 10px;" value="$VAL" data-jscolor="{preset:\'small dark\', position:\'right\'}" oninput="javascript: updateOutputText(event)" onchange="javascript: updateOutputText(event); Cookies.set(`#${$NUM}`, document.getElementById(\'color-$NUM\').value, { expires: 7, path: \'\' })">';
- echo '</div>';
- echo '</div>';
- echo '';
- echo '<div id="content">';
- echo '<h1 id="title">Veldorya RGB</h1>';
- echo '<p id="graylabel1" class="gray" style="padding-bottom: 10px;"></p>';
- echo '<div class="container-fluid">';
- echo '<div class="row">';
- echo '<div class="col-md-2" style="padding-left: 0;">';
- echo '<div id="hexColors" class="container-fluid">';
- echo '<!-- Will be populated in JavaScript -->';
- echo '</div>';
- echo '</div>';
- echo '<div class="col-md-10" style="padding-right: 0;">';
- echo '<div class="container-fluid">';
- echo '<div class="row">';
- echo '<div id="output">';
- echo '<label id="label4" for="outputText">Çıktı</label>';
- echo '<label id="graylabel2" class="gray" for="outputText" style="font-weight: normal;">RGB yazılar için burayı kopyala!</label>';
- echo '<pre id="outputText" style="border-radius: 10px; white-space: pre-wrap; height: 70px; margin-right: 15px; font-family: MinecraftRegular; margin-bottom: 5px;" onclick="copyTextToClipboard(this.textContent);"></pre>';
- echo '<p id="error">256 karakterden fazla olduğu için kutuya sığmayabilir.</p>';
- echo '</div>';
- echo '</div>';
- echo '<div class="row">';
- echo '<div id="coloredNick" class="minecraft"></div>';
- echo '</div>';
- echo '<div class="row">';
- echo '<div class="col-md-3" style="padding-left: 0;">';
- echo '<label for="nickname">Mesaj</label>';
- echo '<input class="form-control" id="nickname" type="text" maxlength="100" placeholder="Your Text" value="Veldorya" oninput="javascript: updateOutputText(event);" onchange="javascript: updateOutputText(event)">';
- echo '</div>';
- echo '</div>';
- echo '<div class="row">';
- echo '<div class="col-md-3" style="padding-left: 0;">';
- echo '<label for="output-format">Çıktı formatı</label>';
- echo '<select id="output-format" class="form-control" onchange="updateOutputText(event);">';
- echo '<option value="0">Normal (&#rrggbb)</option>';
- echo '<option value="2">Eski (&x&r&r&g&g&b&b)</option>';
- echo '<option value="6">Konsol (§x§r§r§g§g§b§b)</option>';
- echo '<option value="8">MOTD (\\u00A7x)</option>';
- echo '<option value="1">Sohbet (<#rrggbb>)</#rrggbb></option>';
- echo '<option value="7">BBCode [COLOR=#rrggbb]</option>';
- echo '</select>';
- echo '</div>';
- echo '</div>';
- echo '<div class="row">';
- echo '<div class="col-md-3" style="padding-left: 0;">';
- echo '<label for="color-preset">Renk Ayarı</label>';
- echo '<select id="color-preset" class="form-control" onchange="preset(this.value); updateOutputText(event); ">';
- echo '<option value="0">Yok</option>';
- echo '<option value="1">Rengarenk</option>';
- echo '</select>';
- echo '</div>';
- echo '</div>';
- echo '<div class="row">';
- echo '<label for="numOfColors">Renk Sayısı</label>';
- echo '<input class="form-control" style="width: 75px;" value="2" id="numOfColors" type="number" min="2" max="10" onchange="updateOutputText(event); toggleColors(this.value);" oninput="updateOutputText(event); toggleColors(this.value);">';
- echo '</div>';
- echo '<div class="row">';
- echo '<div id="dbold">';
- echo '<input type="checkbox" id="bold" onclick="updateOutputText(event);">';
- echo '<label for="bold">Kalın</label>';
- echo '</div>';
- echo '<div id="ditalics">';
- echo '<input type="checkbox" id="italics" onclick="updateOutputText(event);">';
- echo '<label for="italics">Eğik</label>';
- echo '</div>';
- echo '<div id="dunderline">';
- echo '<input type="checkbox" id="underline" onclick="updateOutputText(event);">';
- echo '<label for="underline">Altı çizili</label>';
- echo '</div>';
- echo '<div id="dstrike">';
- echo '<input type="checkbox" id="strike" onclick="updateOutputText(event);">';
- echo '<label for="strike">Ortası çizili</label>';
- echo '</div>';
- echo '<div id="appearance">';
- echo '<input type="checkbox" id="darkmode" onclick="darkMode();">';
- echo '<label for="darkmode" style="margin-bottom: 0px;margin-top: 0px;"> Karanlık Mod</label>';
- echo '</div>';
- echo '</div>';
- echo '</div>';
- echo '</div>';
- echo '</div>';
- echo '</div>';
- echo '</div>';
- echo '<script src="js/jscolor.js"></script>';
- echo '<script src="js/script.js"></script>';
- echo '';
- echo '';
- echo '';
- echo '</body></html>';