View including.ts
// Fix Array.from not being defined. | |
interface ArrayConstructor { | |
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): Array<U>; | |
from<T>(arrayLike: ArrayLike<T>): Array<T>; | |
} | |
window.addEventListener("load", () => { | |
const needIncluding = Array.from(document.getElementsByTagName("include")); | |
for (const include of needIncluding) { | |
includeFile(include.getAttribute("component"), include); |
View trees.js
const CreateTree = element => { | |
const clickEvent = new Event('click'); | |
const openedClass = 'fa-minus-circle'; | |
const closedClass = 'fa-plus-circle'; | |
//initialize each of the top levels | |
element.classList.add('tree'); | |
for (let child of element.querySelectorAll('li')) { | |
if (child.getElementsByTagName('ul').length) { | |
const newNode = document.createElement('i'); |
View ProgressBar.cs
using SampSharp.GameMode; | |
using SampSharp.GameMode.Display; | |
using SampSharp.GameMode.SAMP; | |
using SampSharp.GameMode.World; | |
using System; | |
namespace YourNamespace | |
{ | |
public class ProgressBar : IDisposable | |
{ |