This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var rowsArr = Array.from(rows); | |
| var rowsArr = Array.prototype.slice.call(rows); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| document.querySelector('.page-hero a').addEventListener('click', function () { | |
| document.querySelector('#footer').scrollIntoView({ | |
| behavior: 'smooth' | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <%- include('../partials/navbar') %> | |
| <%= data.id %> | |
| <% if (i === 0) { %> | |
| <tr class="first"> | |
| <% } else { %> | |
| <tr> | |
| <% } %> | |
| <script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var MongoClient = require('mongodb').MongoClient; | |
| function dbConnect(callback) { | |
| MongoClient.connect(dbUrl, function(err, db) { | |
| if (err) return console.log(err); | |
| callback(db); | |
| }); | |
| } | |
| function updateSubscriptions() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function getDataFromApi (summ) { | |
| return new Promise((resolve, reject) => { | |
| /* global fetch */ | |
| fetch('https://gehaltsrechner.bonushammer.com/gettax', { | |
| method: 'POST', | |
| headers: new Headers({'Content-Type': 'application/json'}), | |
| body: JSON.stringify({summ}) | |
| }) | |
| .then(blob => blob.json()) | |
| .then(data => resolve(data)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| "extends": "airbnb-base", | |
| "rules": { | |
| "linebreak-style": ["error", "windows"], | |
| "semi": ["error", "never"], | |
| "comma-dangle": ["error", "never"], | |
| "arrow-parens": ["error", "as-needed"], | |
| "no-use-before-define": 0, | |
| "no-mixed-operators": 0, | |
| "max-len": 0, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| header("Access-Control-Allow-Origin: *"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const url = new URL(location.href); | |
| const id = url.searchParams.get('company'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function get_data($url) { | |
| $curl = curl_init(); | |
| curl_setopt($curl, CURLOPT_URL, $url); | |
| curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); | |
| $out = curl_exec($curl); | |
| curl_close($curl); | |
| $out = json_decode($out); | |
| return $out; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var moneyFormat = wNumb({ | |
| prefix: '', | |
| decimals: 0, | |
| thousand: ' ' | |
| }); | |
| $("#loanamount").text(moneyFormat.to(parseInt(mainloan_slider.noUiSlider.get()))); |