Skip to content

Instantly share code, notes, and snippets.

@PreyK
Created January 31, 2020 14:08
Show Gist options
  • Save PreyK/253df454441edb6d64e3c34f515bd07c to your computer and use it in GitHub Desktop.
Save PreyK/253df454441edb6d64e3c34f515bd07c to your computer and use it in GitHub Desktop.
function OnNavButton(s) {
switch (s) {
case "3D":
console.log("Switched to 3d");
break;
case "filter":
console.log("Switched to filters");
break;
case "levels":
console.log("Switched to levels");
break;
case "list":
console.log("Switched to list");
break;
default:
break;
}
}
function toggleRoom(roomNum, isOn) {
console.log("filtering flats with "+roomNum+" is "+isOn);
}
function OnSizeSliderChanged(min, max) {
console.log("filtering flats with size min: "+min+" max: "+max);
}
function OnPriceSliderChanged(min, max) {
console.log("filtering flats with price min: "+min+" max: "+max);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment