Skip to content

Instantly share code, notes, and snippets.

View sroehrl's full-sized avatar

neoan sroehrl

View GitHub Profile
@sroehrl
sroehrl / scormcloud resize
Last active September 16, 2019 19:01
fighting with scorm
let url = "PLACE URL HERE"
let w = screen.width;
let h = screen.height;
alert(`should be ${h} high and ${w} wide`);
window.open(url,'_blank','height='+h+', width='+w);
@sroehrl
sroehrl / api.php
Created June 19, 2019 02:15
Concept of an API (for learning, not production)
<?php
/* MOST SIMPLE API */
/*
* Add functions to class Methods
* currently, the script supports the call api.php/test
* */
// respond as JSON