Glide is the easiest way to create useful slide for all of your Gists.
- input key
<-
to go backward. - input key
->
to go forward.
function updateFileList() { | |
bucket.listObjects({}, function(err, resp) { | |
if (err) { throw err; } | |
$('#fileList').empty(); | |
$.each(resp.Contents, function(i, content) { | |
var viewLink = $('<a href="#" class="view-link">').text(content.Key); | |
$('<li>').data('key', content.Key) | |
.append(viewLink) | |
.appendTo($('#fileList')); | |
}); |
var bucketName = 'salesforce-bucket'; | |
var bucket; | |
$(function() { | |
initAWSCredentials(); | |
initEventHandlers(); | |
updateFileList(); | |
}); | |
function initAWSCredentials() { |
... | |
<body> | |
<input type="hidden" id="samlResponse" value="{!$CurrentPage.parameters.SAMLResponse}" /> | |
<div> | |
Select File to Upload: <input type="file" id="fileSelect" /> | |
</div> | |
<ul id="fileList"></ul> | |
</body> | |
... |
<apex:page showHeader="false" | |
standardStylesheets="false" | |
sidebar="false" | |
contentType="text/html" | |
applyBodyTag="false" | |
applyHtmlTag="false" | |
cache="true" | |
docType="html-5.0"> | |
<html> | |
<head> |
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>*</AllowedOrigin> | |
<AllowedMethod>GET</AllowedMethod> | |
<AllowedMethod>PUT</AllowedMethod> | |
<AllowedMethod>POST</AllowedMethod> | |
<AllowedMethod>DELETE</AllowedMethod> | |
<AllowedHeader>*</AllowedHeader> | |
</CORSRule> |
<apex:page showHeader="false" | |
standardStylesheets="false" | |
sidebar="false" | |
contentType="text/html" | |
applyBodyTag="false" | |
applyHtmlTag="false" | |
cache="true" | |
docType="html-5.0"> | |
<html> | |
<head> |
<apex:page> | |
<apex:includeScript value="//ajax.googleapis.com/ajax/libs/angularjs/1.0.4/angular.min.js" /> | |
<apex:outputPanel> | |
<div class="ng-app"> | |
<label>Name:</label> | |
<input type="text" ng-model="yourName" placeholder="Enter a name here" /> | |
<hr /> | |
<h1>Hello {{yourName}}!</h1> | |
</div> | |
</apex:outputPanel> |
$(function() { | |
// | |
function someFuncInternallyUsed() { | |
// ... | |
} | |
$('#btnA').click(someFuncInternallyUsed); | |
$('#formA').submit(someFuncInternallyUsed); | |
}); |