Um parágrafo da descrição do projeto vai aqui
Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.
Consulte Implantação para saber como implantar o projeto.
| [globals] | |
| foo=bar | |
| baz={{@foo}} | |
| ENV_VALUE={{ getenv('ENV_VALUE') }} |
Um parágrafo da descrição do projeto vai aqui
Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.
Consulte Implantação para saber como implantar o projeto.
| window.onload = function() { | |
| if ('serviceWorker' in navigator) { | |
| navigator.serviceWorker.register('sw.js').then(function() { | |
| console.log('Service Worker Registered'); | |
| }); | |
| } | |
| let deferredPrompt; | |
| const addBtn = document.querySelector('#enable-banner-install'); | |
| window.addEventListener('beforeinstallprompt', (e) => { |
| /* | |
| Adding a ‘thousands’ separator to ChartJS’s Y axis and tooltips | |
| I learned the toLocaleString() method for adding thousands separators from this Github issue (https://github.com/chartjs/Chart.js/issues/411) | |
| These options in your options config will add a thousands separator to your tooltips and yAxes. | |
| */ | |
| options: { | |
| tooltips: { | |
| callbacks: { |
| // Criando um nome para o arquivo de cache | |
| const staticCache = "meu-site-2018-07-31-21-13"; | |
| // Lista de arquivos que devem ser cacheados | |
| const files = [ | |
| '/', | |
| '/sobre', | |
| '/contato', | |
| '/images/logo.jpg', | |
| '/assets/styles/main.min.css', |
| //https://habr.com/post/213515/ | |
| // This works on all devices/browsers, and uses IndexedDBShim as a final fallback | |
| var indexedDB = window.indexedDB || window.mozIndexedDB || window.webkitIndexedDB || window.msIndexedDB || window.shimIndexedDB, | |
| IDBTransaction = window.IDBTransaction || window.webkitIDBTransaction || window.msIDBTransaction, | |
| baseName = "baseName", | |
| storeName = "storeName"; | |
| function logerr(err){ | |
| console.log(err); |
| <switch expr="{{ @value }}"> | |
| <case value="show-text" break="TRUE"> | |
| text-block | |
| </case> | |
| . | |
| . | |
| . | |
| <default> | |
| message | |
| </default> |
| <canvas id="myChart" width="400" height="100"></canvas> | |
| <script src="/js/Chart.min.js"></script> | |
| <script> | |
| $(function () { | |
| var ctx = document.getElementById("myChart").getContext("2d"); | |
| // examine example_data.json for expected response data | |
| var json_url = "example_data.json"; | |
| // draw empty chart |
| <?php | |
| header('Content-Type: application/json'); | |
| header('Character-Encoding: utf-8'); | |
| // recebe os parâmetros | |
| $QTD = (int) filter_input(INPUT_GET, 'qtd', FILTER_VALIDATE_INT); | |
| $LAT = (float) filter_input(INPUT_GET, 'lat', FILTER_VALIDATE_FLOAT); | |
| $LNG = (float) filter_input(INPUT_GET, 'lng', FILTER_VALIDATE_FLOAT); | |
| if ($LAT && $LNG) { |
| <div id="voltarTopo"> | |
| <a href="#" id="subir">Topo</a> | |
| </div> |