Skip to content

Instantly share code, notes, and snippets.

View crestinglight's full-sized avatar

Evin Brooks crestinglight

  • SendCutSend
  • Omaha, NE
View GitHub Profile
require 'sinatra'
get("/"){
erb :index
}
get("/puzzle01"){
erb :pic1
}
require 'sinatra'
require 'pry'
require 'CSV'
require_relative 'csvMaker.rb'
get("/"){
erb :index
}
get("/puzzle01"){
function displayModal(){
var modal = document.getElementById("modal");
var modalContent = document.getElementById("modalContent");
var modalHighScores = document.getElementById("modalHighScores");
modal.style.display = "block";
modalContent.style.display = "block";
}
function fillModal(timerString){
var modalTimerText = document.getElementById("modalTimer");
modalTimerText.innerHTML = timerString;
displayModal();
}
function fillModal(timerString){
var modalTimerText = document.getElementById("modalTimer");
modalTimerText.innerHTML = timerString;
displayModal();
}
function convertToReadableTime(millis){
var timeArray = [];
var hundredths = findHundredths(millis);
var x = Math.floor(millis / 1000);
var seconds = Math.floor(x % 60);
x /= 60;
var minutes = Math.floor(x % 60);
x /= 60;
function endTimer(){
var endingTime = Date.now();
var totalTime = endingTime - startTimer;
}
function getXY(e){
var xPosition = e.offsetX;
var yPosition = e.offsetY;
}
var picClick = document.getElementById("WaldoLevel1");
picClick.addEventListener('click', getXY);
var startTimer = Date.now();
var startTimer = Date.now();