This file contains 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
// This code sample uses the 'node-fetch' library: | |
// https://www.npmjs.com/package/node-fetch | |
const fetch = require("node-fetch"); | |
const bodyData = `{ | |
"update": {}, | |
"fields": { | |
"summary": "Main order flow broken", | |
"parent": { | |
"key": "PROJ-123" |
This file contains 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
import wixData from "wix-data"; | |
import { session } from "wix-storage"; | |
$w.onReady(() => { | |
$w("#priceSlider").max = 5000000; | |
$w("#priceSlider").value = 250000; | |
$w("#yearMax").text = "2019"; | |
$w("#priceMax").text = "$250,000"; | |
$w("#squareFootage").text = "20,000"; | |
loadRepeater(); | |
if (session.getItem("homeSearch")) { |
This file contains 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
<? | |
require_once( dirname(__FILE__) . "/DB/config.php" ); | |
//phpinfo(); exit; | |
function strFix($str) | |
{ | |
$str = str_replace("\\'", "'", $str); | |
$str = str_replace("'''''", "'", $str); |
This file contains 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
This is how I have it nested, this code is not stand alone | |
<NoteManager | |
accountID={this.props.match.params.id} | |
typeNotes="accounts" | |
/> |
This file contains 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
export function Accounts_beforeInsert(item_ob, context) { | |
if (item_ob.company_id === undefined) { | |
item_ob.company_id = item_ob.company.replace(/\s+/g, '-'); | |
make_id_thing(item_ob.company_id, function (obj) { | |
item_ob.company_id = obj; | |
console.log("how about " + item_ob.company_id); | |
}); | |
} else { | |
item_ob.company_id = item_ob.company_id.replace(/\s+/g, '-'); |
This file contains 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 position = $(window).scrollTop(); // should start at 0 | |
$(window).scroll(function() { | |
var scroll = $(window).scrollTop(); | |
var el = document.getElementById('topbar'); | |
var soc = document.getElementById('social'); | |
var nav = document.getElementById('navlinks'); |