Skip to content

Instantly share code, notes, and snippets.


Sadegh Barati sadeghbarati

View GitHub Profile
View handleUpload.php
<?php // You need to add server side validation and better error handling here
$data = array();
$error = false;
$files = array();
$uploaddir = './uploads/';
sadeghbarati /
Created Oct 13, 2020 — forked from mul14/
JavaScript Upload FormData
<form id="form">
  <input type="name" name="full_name" />
  <input type="file" name="image" />
  <button type="submit">Submit</button>    
// Fetch
sadeghbarati /
Created Aug 19, 2020 — forked from PJoy/

Using barba.js with Sage starter theme

Barba.js is a library using pushState and AJAX allowing websites to load pages asynchronously while still maintaining browser states and history.

Combining it with some JavaScript animations libraries can help craft some memorable browsing experiences.

alt text source

In this guide, we will try to find an optimal way to integrate Barba with our beloved Sage theme !

You can’t perform that action at this time.