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
u = User.find_by_fbid(params[:fbid]) | |
u = User.find_by_email(params[:email]) | |
if u.nil? | |
render :json=>{:user_id=>,:user_email=>} | |
else | |
render :json=>{:user_id=>0,:user_email=>""} | |
end |
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
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html;charset=UTF-8" /> | |
<meta http-equiv="X-UA-Compatible" content="chrome=1" /> | |
<link rel="stylesheet" type="text/css" href="{{url_for('static', filename='css/reset.css')}}" media="all" /> | |
<link rel="stylesheet" type="text/css" href="{{url_for('static', filename='js/components/bootstrap/css/bootstrap.min.css')}}" /> | |
<link rel="stylesheet" type="text/css" href="{{url_for('static', filename='css/layout.css')}}" media="all" /> | |
<script type="text/javascript" src="http://code.jquery.com/jquery-1.9.1.min.js"></script> |
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
imports: | |
- { resource: parameters.yml } | |
- { resource: security.yml } | |
framework: | |
#esi: ~ | |
#translator: { fallback: %locale% } | |
secret: %secret% | |
router: | |
resource: "%kernel.root_dir%/config/routing.yml" |
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
function loaderCtrl($rootScope, $scope, $location, productService, shareData, notifyService, $compile){ | |
var firstLoad = false; | |
var init = function(){ | |
firstLoad = true; | |
$rootScope.location = $location; | |
nowRoot = $rootScope.location.path(); | |
urlPara = nowRoot.split("/"); | |
} | |
//統一監測網址變化<所有的broadcast集中到這邊 讓這邊統一換頁 |
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 pageChange = function(pageName){ | |
$timeout(function(){ | |
console.log("inTimeout"); | |
app=function(){ | |
console.log("not in Timeout"); | |
$rootScope.$broadcast("pageChanged",pageName); | |
}; | |
app(); | |
},1000); |
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
webApp.directive("accountDirectives", function() { | |
return { | |
restrict: 'E', | |
require: 'ngModel', | |
controller: function($scope, $compile) { | |
$scope.createUser = function() { | |
console.log('clicked'); | |
console.log($scope.newuser); | |
console.log($scope.status); | |
return console.log($scope.groupName); |
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
$scope.search = -> | |
# console.log $scope.keyword | |
#延遲送出200ms | |
$timeout -> | |
if $scope.dateMark | |
filter.updateAt = $scope.dateMark | |
filter.keyWord = $scope.keyword | |
console.log filter |
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
//這裡要塞row.schedule[?].route=='DL' | |
td | |
span.ticket-list-datetime {{row.schedule[0].date}} {{row.schedule[0].time}} | |
br | |
span.ticket-list-ferry {{row.schedule[0].ferryName}} {{row.schedule[0].route}}{{row.schedule[0].time | date:'HHmm'}} | |
//這裡要塞row.schedule[?].route=='LD' | |
td | |
span.ticket-list-datetime {{row.schedule[1].date}} {{row.schedule[1].time}} | |
br |
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 _new_id = 0; | |
// check only code | |
var currentTimer = 0; | |
var _code = ''; | |
checkIt = function(){ | |
if(_code == ''){ | |
$('#check_result').html('代碼不可為空白'); | |
}else{ | |
$('#waiting').show(); | |
$.post(_page_url+"/check_code", { code: _code}, |
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
(function() { | |
var checkDuplicate = function(elem, options){ | |
}; | |
$.fn.checkDuplicate = function(options){ | |
var args = Array.prototype.slice.call(arguments); | |
return this.each(function() { | |
var currentTimer = 0; | |
var _code = ''; | |
var $this = $(this); | |
var defaults = { |
OlderNewer