-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
367 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@font-face { | ||
font-family: 'BurguesScriptRegular'; | ||
src: url('burgues_script-webfont.eot'); | ||
src: url('burgues_script-webfont.eot?#iefix') format('embedded-opentype'), | ||
url('burgues_script-webfont.woff') format('woff'), | ||
url('burgues_script-webfont.ttf') format('truetype'), | ||
url('burgues_script-webfont.svg#BurguesScriptRegular') format('svg'); | ||
font-weight: normal; | ||
font-style: normal; | ||
|
||
} | ||
|
||
em { | ||
font-style: italic; | ||
} | ||
strong { | ||
font-weight: bold; | ||
} | ||
|
||
/* Links */ | ||
a { | ||
color: #574319; | ||
|
||
} | ||
|
||
/* Main Section */ | ||
html { | ||
background: #F4F1ED; | ||
text-align: center; | ||
color: #574319; | ||
} | ||
|
||
h1 { | ||
font-size: 44px; | ||
line-height: 40px; | ||
font-family: 'BurguesScriptRegular', sans-serif; | ||
text-indent: 30px; | ||
position: relative; | ||
} | ||
|
||
|
||
#contentWrapper { | ||
width: 620px; | ||
margin-left: 190px; | ||
text-align: left; | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,45 @@ | ||
<h1>Pretend to post a photo</h1> | ||
|
||
<form id="photo" name="photo" method="post" action="/fake"> | ||
<script type="text/javascript" src="//assets.transloadit.com/js/jquery.transloadit2.js"></script> | ||
<script type="text/javascript"> | ||
// We call .transloadit() after the DOM is initialized: | ||
$(document).ready(function() { | ||
// Don't forget this goes inside your document.ready | ||
$('#newpicture').transloadit({ | ||
modal: false, | ||
autoSubmit: false, | ||
wait: true, | ||
onProgress: function(bytesReceived, bytesExpected) { | ||
// render your own progress bar! | ||
$('#progress') | ||
.text((bytesReceived / bytesExpected * 100).toFixed(2)+'%'); | ||
}, | ||
onError: function(assembly) { | ||
alert(assembly.error+': '+assembly.message); | ||
}, | ||
onSuccess: function(assembly) { | ||
console.log(assembly); | ||
} | ||
}); | ||
// Event handler to submit form | ||
$('#button').click(function(){ | ||
$('#newpicture').submit(); | ||
return false; | ||
}); | ||
}); | ||
</script> | ||
|
||
<div id="progress"></div> | ||
|
||
<form id="newpicture" name="newpicture" method="POST" action="http://api2.transloadit.com/assemblies" enctype="multipart/form-data"> | ||
<input type="hidden" name="params" value="{"auth":{"key":"121f5af949ab45b6a29924e5aa4e9520"},"template_id":"0a31cdf7aa7b4acfa1508da329d0075d","redirect_url":"/fake"}" /> | ||
<label for="name">Name</label> | ||
<input id="name" name="name" type="text"> | ||
<input id="name" name="name" type="text" value="SianJason"> | ||
<label for="photo">Photo</label> | ||
<input id="photo" type="file" name="photo"> | ||
<label for="caption">Caption</label> | ||
<input id="caption" name="caption" type="text"> | ||
<button type="submit">Add</button> | ||
</form> | ||
</form> | ||
<a id="button" href="">Submit form</a> |
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