function refreshCam(id, file) {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
var s = today.getSeconds();
document.getElementById(id).src = file + "?time="+h+m+s;
setTimeout('refreshCam("webcamImage","'+file+'")',10000);
}
window.onload = function(){
if( document.getElementById("webcamImage") )
refreshCam( "webcamImage","http://orgnsm.org/webcam.jpg" );
}
//the callback function run after loading JSONp below
function test_results_loaded(data){
//post data to a service via ajax
var xhr = new XMLHttpRequest();
xhr.open("POST", "https://orgnsm@orgnsm.org:lkAGWUE01H@orgnsm.testrail.com//index.php?/api/v2/add_result/1", true);
xhr.setRequestHeader('Content-Type', 'application/json;');
xhr.setRequestHeader('Accept', 'application/json;');
// send the collected data as JSON
xhr.send(JSON.stringify({"status_id":"1"}));
xhr.onloadend = function () { alert("Wrote test data"); };
}
window.onload = function()
@media (max-width: 480px){
}
@media (max-width: 767px){
#container{
padding: 0 25px;
}
nav ul li a{
font-size: 100%;
padding: 15px 0;
border-radius: 30px;
}
nav ul li a svg{
width: 60px;
height: 60px;
}
}
@media (min-width: 768px) and (max-width: 979px){
#container{
padding: 0 35px;
}
nav ul li a{
font-size: 120%;
padding: 20px 0;
border-r
jQuery(function($){
$("#contact").submit(function(){
//grab form values before blowing it out of the DOM in the next line
values=$(this).serialize();
$("#contact").html( "<p>Sending message...</p>\n" );
//send the values to the PHP handler
$.ajax({
type: "POST",
url: $("#contact").attr('action'),
data: values,
success: function(re){
$("#contact").html(re);
}
});
return false;
});
});