Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:

Sadegh Barati sadeghbarati

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

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.