A modified version of this codepen: http://codepen.io/pankajparashar/pen/towxF
Now accounts for:
- adding
z-index
property to the<progress>
element - subtracts additional
<footer>
element's height from progress calculation (in thegetMax()
method)
A modified version of this codepen: http://codepen.io/pankajparashar/pen/towxF
Now accounts for:
z-index
property to the <progress>
element<footer>
element's height from progress calculation (in the getMax()
method)// browser detect | |
var BrowserDetect = { | |
init: function(userAgent, appVersion) { | |
this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; | |
this.version = this.searchVersion(userAgent) || this.searchVersion(appVersion) || "an unknown version"; | |
this.OS = this.searchString(this.dataOS) || "an unknown OS"; | |
}, | |
searchString: function(data) { | |
for (var i = 0; i < data.length; i++) { | |
var dataString = data[i].string; |
// Get all users | |
var url = "http://localhost:8080/api/v1/users"; | |
var xhr = new XMLHttpRequest() | |
xhr.open('GET', url, true) | |
xhr.onload = function () { | |
var users = JSON.parse(xhr.responseText); | |
if (xhr.readyState == 4 && xhr.status == "200") { | |
console.table(users); | |
} else { | |
console.error(users); |
/** | |
* @param $url | |
*/ | |
public function actionStreamVideoFromCdn($url) | |
{ | |
$headersCollection = Yii::$app->request->getHeaders(); | |
$responseHeaders = []; | |
$chInfo = curl_init(); | |
curl_setopt($chInfo, CURLOPT_URL, $url); |
<?php | |
/** | |
* PHP File download function. | |
* Version 1.4 | |
* | |
* Copyright (c) 2014 성기진 Kijin Sung | |
* Modified by ssut | |
* | |
* License: MIT License (a.k.a. X11 License) |
<?php | |
// ftp_sync - copy directory and file structure | |
// based on http://www.php.net/manual/es/function.ftp-get.php#90910 | |
// main function witch is called recursivly | |
function ftp_sync($dir, $conn_id) { | |
if ($dir !== '.') { | |
if (ftp_chdir($conn_id, $dir) === FALSE) { | |
echo 'Change dir failed: ' . $dir . PHP_EOL; | |
return; |
<?php | |
/*ini settings*/ | |
set_time_limit(0); | |
ini_set('memory_limit', '512M'); | |
//DOWNLOAD SCRIPT | |
$filePath = "G:/Software/versions/..PATH TO DOWNLOAD FILE...zip"; // set your download file path here. | |
download($filePath); // calls download function | |
function download($filePath) | |
{ |
<?php | |
function show($str){ | |
echo $str . "<br/>\n"; | |
flush(); | |
ob_flush(); | |
} | |
$archiveDir = "temp"; |