documentation
loadings

this is doctation!

here you can learn about theyay


toolbar yayfiles customfunc.js mobile insert other topic here
hide this

toolbar 1.7.1.3p

it thingy on the top of the page
heres the buttons the little buttons hello buttons


hide this

yayfiles

yayfiles are unique theyay files used to download stuff that can only be read by theyay itself
here are all the types of yayfiles

file type
.YAY general file
.YPREF14 preferences file

hide this

customfunc.js

theyay uses customfunc.js, a function kit/library with easy-to-remember new js commands along with variants of existing ones
here are 3 functions of each class and what they do (36/86 functions)

class function job example
math add(a, b) returns a + b console.log(add(1, 1)) = "2"
math subtract(a, b) returns a - b console.log(subtract(1, 1)) = "0"
math multiply(a, b) returns a * b console.log(multiply(2, 4)) = "8"
strings reverse(str) returns desrever string console.log(reverse("hello!")) = "!olleh"
strings capitalize(str) returns Capitalized string console.log(capitalize("hello guys")) = "Hello guys"
strings titleCase(str) returns Title-Cased string console.log(titleCase("top 10 best cats")) = "Top 10 Best Cats"
checks isNumber(value) returns true if value is a 142113020518, false if not console.log(isNumber(12345)) = "true"
checks isString(value) returns true if value is a "string", false if not console.log(isString("spider")) = "true"
checks isArray(value) returns true if value is an array, false if not
elements clear(id) clears element with id
elements toggle(id, mode) toggles visibility of element with id, mode can be set to "display" or "visibility"
elements getElementPosition(id) gets current position of element with id
operators repeat(action, times) repeats the action a number of times
operators forEach(value, action) repeats the action for each of value
operators runJS(cmd) runs a javascript command (unsafe)
events mapKey(key, action) maps a key to an action
events removeKey(key) unmaps a key
events addListener(event, id, action) adds an event listener to element with id that executes an action
page zoom(amount) applies amount of zoom, positive for zooming in, negative for zooming out
page toggleFullscreen() toggles fullscreen
page savePage(fileName) save current page as fileName.html
-storage writeToLocalStorage(key, value) saves key with value to localStorage
-storage readFromLocalStorage(key) loads key from localStorage
-storage writeToSessionStorage(key, value) saves key with value to sessionStorage
cakes (arrays) bakeCake(cake, slices) bakes a cake (array) with slices (objects)
cakes (arrays) eatCake(cake) eats (deletes) the cake
cakes (arrays) bakeToCake(cake, slice) bakes a slice into a cake
references newReference(name, value) makes a reference to value with name
references removeReference(name) removes reference with name
references updateReference(name, value) updates reference with name to value
animations fallAnim(id) adds fall animation to element with id
animations squishAnim(id) adds squish animation to element with id
animations unsquishAnim(id) removes squish animation to unsquish element with id
logic not(a) returns opposite of a console.log(not(true)) = "false"
logic and(a, b) returns true if a and b is true console.log(and(true, true)) = "true"
logic or(a, b) returns true if a or b is true console.log(or(true, false)) = "true"

click here to see all functions


hide this

mobile

it is not recommended to use this site on smaller screens (such as phones or tablets) since content could be incorrectly resized and small buttons might be harder to tap

for best experience, use this site on a desktop device


hide this

insert other topic here

insert information about the other topic here