Skip to content

Instantly share code, notes, and snippets.

View ozknozsrt's full-sized avatar
🚀
Focusing

Özkan ÖZSERT ozknozsrt

🚀
Focusing
View GitHub Profile
@ozknozsrt
ozknozsrt / README.md
Last active September 5, 2020 16:10
Some of the resources discovered about React
<!-- SmtpJs -->
<script src="https://smtpjs.com/v3/smtp.js"></script>
<script>
$('.btn-submit').click(function () {
/*var maillist = [
'****@***.com',
'****@***.com',
];*/
@ozknozsrt
ozknozsrt / doviz.html
Created July 6, 2020 15:02
Döviz kuru JS
<div id="dovizkuru">
<div class="dolar">
<div>USD</div>
<div>Buying: <span class="buying"></span></div>
<div>Selling: <span class="selling"></span></div>
</div>
<div class="altin">
<div>Ounce Gold</div>
<div>Buying: <span class="buying"></span></div>
<div>Selling: <span class="selling"></span></div>
@ozknozsrt
ozknozsrt / app.js
Last active January 16, 2024 16:48 — forked from itzikbenh/app.js
WordPress API - how to fetch and paginate posts with Vue.js
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',
@ozknozsrt
ozknozsrt / slugify_tr.js
Created September 20, 2019 08:33 — forked from muratcorlu/slugify_tr.js
Javascript Türkçe karakter destekli slugify (url metni oluşturucu)
/**
* Metni url'de kullanılabilir hale çevirir. Boşluklar tireye çevrilir,
* alfanumerik olmayan katakterler silinir.
*
* Transform text into a URL path slug(with Turkish support).
* Spaces turned into dashes, remove non alnum
*
* @param string text
*/
slugify = function(text) {
@ozknozsrt
ozknozsrt / svg.js
Created February 12, 2019 08:59 — forked from schmidt1024/svg.js
Replace all SVG images with inline SVG using jQuery
/*
* Replace all SVG images with inline SVG
*/
jQuery('img.svg').each(function(){
var $img = jQuery(this);
var imgID = $img.attr('id');
var imgClass = $img.attr('class');
var imgURL = $img.attr('src');
jQuery.get(imgURL, function(data) {
@ozknozsrt
ozknozsrt / index.js
Created November 23, 2018 09:52
Get UTM
var getUrl = window.location.protocol + "//" + window.location.host + "/" + window.location.pathname + window.location.search;
$('#getUrl').val(getUrl);
/*-----------------*/
// Parse the URL
function getParameterByName(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
results = regex.exec(location.search);
@ozknozsrt
ozknozsrt / ys.js
Created September 12, 2018 16:19 — forked from riza/ys.js
yemeksepeti random yemek seçici
/* Chrome eklentisi de şurada : https://github.com/riza/yemeksepeti-randomer */
var items = []; $('.ys-item').find('.head').find('.restaurantName').each(function(i,v) { items.push($(this).html()); });console.log(items[Math.floor(Math.random()*items.length)]);
@ozknozsrt
ozknozsrt / index.html
Created August 29, 2018 07:23
Fixed Grid Lines
<div class="grid">
<div class="container">
<div class="row">
<div class="col-xs-3 col-md-offset-1 col-md-2">
<div class="grid-line"></div>
</div>
<div class="col-xs-3 col-md-2">
<div class="grid-line"></div>
</div>
<div class="col-xs-3 col-md-2">
@ozknozsrt
ozknozsrt / front-end-blogs.md
Created August 28, 2018 07:53 — forked from zamozniewicz/front-end-blogs.md
Front-end blogs worth reading

##Front-end blogs worth reading##

Even though for the last few years blogs have been losing popularity to Twitter, Facebook and Google Plus and so on, they're still not dead and have not been replaced with other media.

###Articles, showcases, resources###

  • A List Apart - articles design, development, and web standards
  • DailyJS - news, tips, examples and reviews of a variety of JavaScript frameworks and modules.
  • Mozilla Hacks - one of key resources for people developing for the Open Web