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
{ | |
"1": "ADANA", | |
"2": "ADIYAMAN", | |
"3": "AFYONKARAHİSAR", | |
"4": "AĞRI", | |
"5": "AMASYA", | |
"6": "ANKARA", | |
"7": "ANTALYA", | |
"8": "ARTVİN", | |
"9": "AYDIN", |
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
function State() { | |
this.actions = {}; | |
this.subscriptions = []; | |
this.history = []; | |
} | |
State.prototype.subscribe = function(element, action, callback) { | |
this.subscriptions[action] = this.subscriptions[action] || []; | |
this.subscriptions[action].push(function(data) { | |
callback.apply(element, data); |
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
/* | |
##Cihaz = Masaüstü | |
##Ekran = 1281px 'den yüksek çözünürlükler için | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
} |
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
const namer=(item)=>{ | |
let data = item; | |
let last="/>"; | |
let first="<"; | |
let count=data.split(last).length-1; | |
let counted =0; | |
while(count>counted){ | |
let lastplac=data.search(last)-1; | |
let i=0; | |
let deval=""; |
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
// Credit Ryan Carniato https://frontendmasters.com/courses/reactivity-solidjs/ | |
let context = []; | |
export function untrack(fn) { | |
const prevContext = context; | |
context = []; | |
const res = fn(); | |
context = prevContext; | |
return res; |