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
import Vue from 'vue'; | |
import posts from './components/posts.vue'; | |
window.axios = require('axios'); | |
window.Vue = Vue; | |
Vue.component('posts', posts); | |
const app = new Vue({ | |
el: '#app', |
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 findGrandParent(array, id) { | |
// Diziyi her bir eleman için döngüye sok | |
for (let i = 0; i < array.length; i++) { | |
// Eğer elemanın id'si aranan id ile eşitse, elemanı, üst nesneyi ve üst nesnenin üst nesnesini döndür | |
if (array[i].StepId === id) { | |
return { item: array[i], parent: array, grandParent: array.parent }; | |
} | |
// Eğer elemanın Steps adında bir özelliği varsa, recursive olarak fonksiyonu çağır | |
if (array[i].Steps) { | |
// Recursive çağrı yapmadan önce, dizinin üst nesnesini Steps özelliğine ata |
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
// https://stackoverflow.com/questions/3239834/window-onbeforeunload-not-working-on-the-ipad | |
if (typeof (onbeforeunloadCallBack) === "function") { | |
//newWindow.onbeforeunload = function (param) { | |
// onbeforeunloadCallBack(param); | |
//} | |
var isOnIOS = navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPhone/i); | |
var eventName = isOnIOS ? "pagehide" : "beforeunload"; |
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
<!-- SmtpJs --> | |
<script src="https://smtpjs.com/v3/smtp.js"></script> | |
<script> | |
$('.btn-submit').click(function () { | |
/*var maillist = [ | |
'****@***.com', | |
'****@***.com', | |
];*/ |
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
// wwwroot/js/ui-components klasörü açıp içinde her component'e özel dosyalar olabilir: | |
// alert-message.js | |
ko.components.register('alert-message', { | |
viewModel: function (params) { | |
var self = this; | |
self.css = params.css; | |
self.icon = params.icon; | |
self.text = params.text; | |
self.title = translate(`global.${self.icon}`); | |
}, |
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
@charset "utf-8"; | |
/* CSS Document */ | |
html, form { | |
width: 100%; | |
height: 100%; | |
} | |
body { | |
width: 100%; | |
height: 100%; | |
margin: 0; |
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
http://www.dijitalders.com/rs/ic/google_map_30_ile_directions_yol_tarifi_kullanimi__4708_0.png | |
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"/> | |
<link href="http://code.google.com/apis/maps/documentation/javascript/examples/default.css" rel="stylesheet" type="text/css" /> | |
<script type="text/javascript" | |
src="http://maps.google.com/maps/api/js?sensor=false"> |
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
birler = ["","Bir","İki","Üç","Dört","Beş","Altı","Yedi","Sekiz","Dokuz"] | |
onlar = ["","On","Yirmi","Otuz","Kırk","Elli","Altmış","Yetmiş","Seksen","Doksan"] | |
def okunus(sayı): | |
birinci = sayı % 10 | |
ikinci = sayı // 10 | |
return onlar[ikinci] + " " + birler[birinci] | |
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
<hta:application applicationname="HTA Test" scroll="yes" singleinstance="yes"> | |
<script type="text/javascript"> | |
function openURL() | |
{ | |
var shell = new ActiveXObject("WScript.Shell"); | |
shell.run("Firefox http://www.google.com"); | |
} | |
</script> | |
</head> | |
<body> |
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 box = document.querySelector(".box"); | |
document.addEventListener("click", function(e) { | |
if(e.composedPath().includes(box)) { | |
console.log("clicked inside it!") | |
} else { | |
console.log("clicked outside it!") | |
} | |
}) |
NewerOlder