mirror of
https://gitlab.com/hashborgir/d2tools.git
synced 2025-12-15 12:31:36 -06:00
new branch windows
This commit is contained in:
26
request-quota.php
Normal file
26
request-quota.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<style type="text/css">@import url("style.css");</style>
|
||||
<a href="index.php">Go back to index</a>
|
||||
| <a href="<?php echo $_SERVER["REQUEST_URI"];?>">Refresh</a>
|
||||
|
||||
<title>Request quota</title>
|
||||
<h1>Request quota</h1>
|
||||
|
||||
<p>Request quota for HTML 5 persistent storage.</p>
|
||||
|
||||
<script>
|
||||
function DoRequestQuota() {
|
||||
// Request Quota (only for File System API)
|
||||
try {
|
||||
navigator.webkitPersistentStorage.requestQuota(PERSISTENT, 1024*1024,
|
||||
function(bytes){ window.alert("Granted bytes: "+bytes);},
|
||||
function(error){ window.alert(error); });
|
||||
} catch(e) {
|
||||
navigator.webkitPersistentStorage.requestQuota(1024*1024,
|
||||
function(bytes){ window.alert("Granted bytes: "+bytes);},
|
||||
function(error){ window.alert(error); });
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<a href="javascript:DoRequestQuota()">
|
||||
DoRequestQuota()</a>
|
||||
Reference in New Issue
Block a user