Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
lam3r4370 каза:В смисъл как са го направили тука http://www.freeforums.org/features.php
в System Details последното дето се увеличава и на принципа на какво се увеличава
На един хост освен да се качават, може и да се трият файловеlam3r4370 каза:Някакъв код?И как се увеличава не трябва ли да намалява?
<script language="javascript">
var startQuota = 981839315.75309;
var startTime = (new Date()).getTime();
var extraStoragePerDay = 1747626.6666667;
function formatSpace(amount, pad) {
// Show amount in megabytes
amount /= 1024 * 1024;
var str = String(amount);
var dot = str.indexOf('.');
if (dot < 0) {
str = str + pad;
} else if (pad.length > (str.length - dot)) {
str = str + pad.substring(str.length - dot);
} else {
str = str.substring(0, dot + pad.length);
}
return str + ' MB';
}
function updateQuota() {
var now = (new Date()).getTime();
var quota = document.getElementById("quota");
// Don't do anything, in case page doesn't have counter control
if (!quota) {
return;
}
quota.innerHTML = formatSpace(startQuota + ((now - startTime) / 1000) * (extraStoragePerDay / (24.0 * 60 * 60)), '.000000');
setTimeout(updateQuota, 1000);
}
function onLoad()
{
updateQuota();
}
</script>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=windows-1251">
<title>Untitled 4</title>
</head>
<body>
<script language="javascript">
var startQuota = 981839315.75309;
var startTime = (new Date()).getTime();
var extraStoragePerDay = 1747626.6666667;
function formatSpace(amount, pad) {
// Show amount in megabytes
amount /= 1024 * 1024;
var str = String(amount);
var dot = str.indexOf('.');
if (dot < 0) {
str = str + pad;
} else if (pad.length > (str.length - dot)) {
str = str + pad.substring(str.length - dot);
} else {
str = str.substring(0, dot + pad.length);
}
return str + ' MB';
}
function updateQuota() {
var now = (new Date()).getTime();
var quota = document.getElementById("quota");
// Don't do anything, in case page doesn't have counter control
if (!quota) {
return;
}
quota.innerHTML = formatSpace(startQuota + ((now - startTime) / 1000) * (extraStoragePerDay / (24.0 * 60 * 60)), '.000000');
setTimeout(updateQuota, 1000);
}
function onLoad()
{
updateQuota();
}
</script>
</body>
</html>
<span id="quota">{CURRENT_STORAGE_QUOTA}</span>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<span id="quota">{CURRENT_STORAGE_QUOTA}</span>
<meta http-equiv="content-type" content="text/html; charset=windows-1251">
<title>Untitled 4</title>
</head>
<body>
<script language="javascript">
var startQuota = 981839315.75309;
var startTime = (new Date()).getTime();
var extraStoragePerDay = 1747626.6666667;
function formatSpace(amount, pad) {
// Show amount in megabytes
amount /= 1024 * 1024;
var str = String(amount);
var dot = str.indexOf('.');
if (dot < 0) {
str = str + pad;
} else if (pad.length > (str.length - dot)) {
str = str + pad.substring(str.length - dot);
} else {
str = str.substring(0, dot + pad.length);
}
return str + ' MB';
}
function updateQuota() {
var now = (new Date()).getTime();
var quota = document.getElementById("quota");
// Don't do anything, in case page doesn't have counter control
if (!quota) {
return;
}
quota.innerHTML = formatSpace(startQuota + ((now - startTime) / 1000) * (extraStoragePerDay / (24.0 * 60 * 60)), '.000000');
setTimeout(updateQuota, 1000);
}
function onLoad()
{
updateQuota();
}
</script>
</body>
</html>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script language="javascript">
var startQuota = 981839315.75309;
var startTime = (new Date()).getTime();
var extraStoragePerDay = 1747626.6666667;
function formatSpace(amount, pad) {
// Show amount in megabytes
amount /= 1024 * 1024;
var str = String(amount);
var dot = str.indexOf('.');
if (dot < 0) {
str = str + pad;
} else if (pad.length > (str.length - dot)) {
str = str + pad.substring(str.length - dot);
} else {
str = str.substring(0, dot + pad.length);
}
return str + ' MB';
}
function updateQuota() {
var now = (new Date()).getTime();
var quota = document.getElementById("quota");
// Don't do anything, in case page doesn't have counter control
if (!quota) {
return;
}
quota.innerHTML = formatSpace(startQuota + ((now - startTime) / 1000) * (extraStoragePerDay / (24.0 * 60 * 60)), '.000000');
setTimeout(updateQuota, 1000);
}
function onLoad()
{
updateQuota();
}
</script>
<meta http-equiv="content-type" content="text/html; charset=windows-1251">
<title>Untitled 4</title>
</head>
<body>
<span id="quota">{CURRENT_STORAGE_QUOTA}</span>
<script language="javascript">
onLoad();
</script>
</body>
</html>