Skip to content

Instantly share code, notes, and snippets.

@kir-sf
kir-sf / search.gs
Created October 4, 2016 08:53
SearchForInvoice
Array.prototype.findByPropName = function(name){
for(var i = 0; i < this.length; i++){
if(this[i].key == name) return this[i]
}
return {value: undefined};
}
function onOpen() {
addMenu();
@kir-sf
kir-sf / Page.html
Last active August 31, 2016 10:53
Sales.Scriptor
<!DOCTYPE html>
<html>
<head>
<base target="_top">
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons1.css">
<script>
function turnOffButtons() {
for(var index=1; index<=6; index++) {
var b=document.getElementById("but"+index);
b.hidden=true;
@kir-sf
kir-sf / Page.html
Last active August 31, 2016 07:21
Волшебная кнопка
<!DOCTYPE html>
<html>
<head>
<base target="_top">
<script>
function putCash(newCash) {
var c = document.getElementById("Cash");
c.innerHTML=newCash+" RUR";
}
function putProfit(newProfit) {