Skip to content

Instantly share code, notes, and snippets.

View Nasirinezhad's full-sized avatar
🌴
On vacation

Mahdi Nasirinezhad

🌴
On vacation
View GitHub Profile
@Nasirinezhad
Nasirinezhad / Http.js
Created August 10, 2019 11:31
[Qt-qml] A simple javascript Rest http Requst(Get-Post-Put-Delete)
var Request = function (options) {
var http = {
"xhr": new XMLHttpRequest(),
"URLbase": '',
"method": 'GET',
"userAgent": null,
"success": null,
"fail": null,
"callback": function () {
if (http.xhr.readyState !== 4) {
@Nasirinezhad
Nasirinezhad / admin.html
Created October 27, 2017 18:17
cronometro and timer online, avable to control clients by admin
<!DOCTYPE html>
<html lang="es">
<head>
<title>Cronómetro</title>
<meta charset="utf-8" />
<link href="style.css" rel="stylesheet" />
<!-- <script src="jquery.js"></script> -->
<script src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
</head>
@Nasirinezhad
Nasirinezhad / calculator economic factors
Last active August 10, 2019 18:43
calculator economic factors : P/F - F/P - A/F - F/A - A/P - P/A - P/G - F/G - A/G
<html><head>
<meta charset="utf-8">
<title>calculator economic factors</title>
<script type="text/javascript">
function geti(){
n = document.getElementById('rate').value;
return Math.abs(n/100);
}
function getn(){
n = document.getElementById('turn').value;