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
public with sharing class ZipDownloadDemoController { | |
// Constructor | |
public ZipDownloadDemoController() { | |
} | |
@RemoteAction | |
public static PageReference getZipDownloadUrl(String objectId) { | |
Zippex newZip = new Zippex(); |
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
<apex:page controller="ZipDownloadDemoController" standardStylesheets="false" showHeader="false" applyHtmlTag="false" applyBodyTag="false" > | |
<link rel="stylesheet" href="{! URLFOR($Resource.bootstrapsf1, 'src/dist/css/bootstrap.css')}" /> | |
<script src="//code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script> | |
<!-- Begin Default Content REMOVE THIS --> | |
<h1>Zip Download Demo</h1> | |
<div id="dldemo" class="btn btn-default">download</div> | |
<script> | |
var RemoteActionModule = ZipDownloadDemoController; |
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
public with sharing class ZipDownloadDemoController { | |
// Constructor | |
public ZipDownloadDemoController() { | |
} | |
@RemoteAction | |
public static PageReference getZipDownloadUrl(String objectId) { | |
Zippex newZip = new Zippex(); |
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
var MyApp = angular.module('app', []); | |
MyApp.controller('PagerCtrl', ['$scope', function ($scope) { | |
$scope.firstAction = function () { | |
console.log('implement the first action'); | |
}; | |
$scope.secondAction = function () { | |
console.log('implement the second action'); | |
}; |
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
<html> | |
<head> | |
</head> | |
<body> | |
<h1>test</h1> | |
<script> | |
var aaa = ''; | |
var bbb = '0'; | |
var ccc = '1'; |
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
<html> | |
<head> | |
<link rel="stylesheet" href="./assets/owl.carousel.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script> | |
<script src="./owl.carousel.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
$(".owl-carousel").owlCarousel(); | |
}); |
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
// convert from date format string to date | |
var convertDateFromStr = function(dateStr) { | |
var newDt = new Date(); | |
var reg = new RegExp('\\-|\\/|\\s|T'); | |
var dt = dateStr.split(reg, 4); | |
if(dt.length > 2) { | |
newDt = new Date(dt[0], dt[1]-1, dt[2]); |
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
/** | |
* convert datetime from string | |
* @param String datetimeStr : datetime formart string. for example 2015/6/18 11:11 | |
* @return Datetime : | |
*/ | |
public static Datetime convertDatetimeFromStr( String datetimeStr ) { | |
Date dateConv = null; | |
Time timeConv = Time.newInstance(0, 0, 0, 0); | |
List<String> dt = String.ValueOf(datetimeStr).split('\\-|\\/|\\s|T', 4); | |
if(dt.size() > 2) { |
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
// Reference: http://www.xgeek.net/salesforce/a-way-to-make-thread-sleep-in-apex/ | |
public class ApexUtil { | |
/********************************************************** | |
* Helper Method: wait | |
* @param Integer millisec : time for wait (millisecond) | |
*********************************************************/ | |
public static void wait(Integer millisec) { | |
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
module.exports = function (grunt) { | |
grunt.initConfig({ | |
concat: { | |
files: { | |
// write source files | |
src : 'js/*.js', | |
// 順序指定する場合は配列で渡す | |
// src : [ | |
// 'js/src2.js', | |
// 'js/src1.js', |
NewerOlder