mirror of
https://github.com/catppuccin/catppuccin
synced 2024-11-26 05:20:20 +00:00
b9bbd77c7f
* docs: restructure & improve contrib docs * chore: rework samples code * docs: fix capitalization & brand names * docs: PR comments & try to standardise palette vs flavor * docs: add sample-programs * docs: update submission guidelines (refs: #1821) * refactor: tidy up docs Co-authored-by: winston <hey@winston.sh>
33 lines
831 B
JavaScript
33 lines
831 B
JavaScript
var globalVar;
|
|
|
|
/**
|
|
* Constructor for AjaxRequest class
|
|
* @param {string} url the url for the request<p/>
|
|
*/
|
|
function AjaxRequest(url) {
|
|
function local() {}
|
|
var urls = [ "www.cnn.com", 5, globalVar];
|
|
this.request = new XMLHttpRequest();
|
|
url = url.replace(/^\s*(.*)/, "$1"); // skip leading whitespace
|
|
/* check the url to be in urls */
|
|
var a = "\u1111\z\n\u11";
|
|
this.foo = new function() {};
|
|
foo();
|
|
#
|
|
var hello = () => console.log("hello")
|
|
}
|
|
|
|
@decorator()
|
|
class NameClass {
|
|
}
|
|
|
|
declare module name{
|
|
declare export var exportedVar: string;
|
|
declare export function exportedFunction(): void;
|
|
declare export class ExportedClass {}
|
|
}
|
|
|
|
interface MyInterface { }
|
|
type FooBarAlias = string;
|
|
var html =`<div title='HTML injection'>Injected language fragment</div>`;
|
|
var x: MyInterface, y: string, z: FooBarAlias;
|