diff --git a/getData.php b/getData.php deleted file mode 100644 index 67a2c4c..0000000 --- a/getData.php +++ /dev/null @@ -1,31 +0,0 @@ -prepare('SELECT * FROM queriesJSON WHERE username = :username ORDER BY simName'); - $stmt->execute(array(':username' => $_POST['username'])); - foreach ($stmt as $row) { - $data['simName'][] = $row['simName']; - $data['qid'][] = $row['qid']; - } - echo JSON_encode($data); -} - -if($_POST['param']=="saveSim"){ - $stmt = $db->prepare('INSERT INTO queriesJSON (username, simName, json) VALUES (:username, :simName, :json)'); - $stmt->execute(array(':username' => $_POST['username'], ':simName' => $_POST['simName'], ':json' => $_POST['json'])); - echo JSON_encode('Success'); -} - -if($_POST['param']=="getSavedSim"){ - $stmt = $db->prepare('SELECT * FROM queriesJSON WHERE qid = :qid'); - $stmt->execute(array(':qid' => $_POST['qid'])); - foreach ($stmt as $row) { - $data['data'] = $row['json']; - $data['simName'] = $row['simName']; - $data['qid'] = $row['qid']; - } - echo JSON_encode($data); -} - - -?> \ No newline at end of file diff --git a/index.html b/index.html index f545415..6ae02ba 100644 --- a/index.html +++ b/index.html @@ -89,6 +89,98 @@ .ot_banner_output a { color: #23568f; } + + /** + * Reset button styles + * It takes some work to achieve a “blank slate” look. + */ + button { + padding: 0; + border: none; + font: inherit; + color: inherit; + background-color: transparent; + /* show a hand cursor on hover; some argue that we + should keep the default arrow cursor for buttons */ + cursor: pointer; + } + + /** + * Button component + */ + input[type=button], .custom-file-upload{ + /* default for - ; +