-
萬事屋
wordpress template
一個租借器材的器材列表網站,案主要求租賃採預約方式,透過 Email 或網頁中的表單預約,因此沒有串金流。有非常完整的商品查詢導覽功能、手機版介面也相當完善,案主可依照我們提供的教學文件上架商品。
This file contains hidden or 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
mixin claw(index) | |
.snorlax__foot-claw(class=`snorlax__foot-claw--${index}`) | |
div | |
.snorlax | |
.snorlax__head | |
.snorlax__head-outline | |
.snorlax__ear.snorlax__ear--left | |
.snorlax__ear.snorlax__ear--right | |
.snorlax__brow.snorlax__brow--left | |
.snorlax__brow.snorlax__brow--right |
This file contains hidden or 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
// 更新事件日期 | |
// 假設你大概是在 2017/09/21 20:00:00 改的 | |
var eid = 50 // 你的 eid | |
var date = new Date("2017/09/21 18:00:00") //你大概的日期 | |
var hourTolerance = 3 // 上下區間 | |
var dateStr = "9/20" // 要改的日期 | |
var q = new Parse.Query(EventRecord) |
This file contains hidden or 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
<script src="https://www.gstatic.com/firebasejs/4.0.0/firebase.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.2.6/vue.js"></script> | |
<div id="app"> | |
<!-- input --> | |
<h3>Auth</h3> | |
https://firebase.google.com/docs/auth/web/facebook-login | |
<!-- input --> |
This file contains hidden or 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($) { | |
$.getWeatherJSON = function ( url , callback ){ | |
$.getJSON (url , function (data){ | |
if (data && data.query && data.query.results && data.query.results.channel.item.forecast && data.query.results.channel.item.forecast[3] ){ // if data.query.results exist , do the following action. | |
callback (data) | |
}else { | |
console.info("reloading : ",url) | |
$.getWeatherJSON(url,callback) | |
} | |
}) |
This file contains hidden or 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 getJsonUntilSuccess (url , callback ){ | |
$.getJSON (end_point_url , function (data){ | |
if (data.query.results){ // if data.query.results exist , do the following action. | |
callback (data) | |
}else { | |
console.info("reloading : ",url) |
This file contains hidden or 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
import Foundation | |
import CoreData | |
import RxSwift | |
import RxCocoa | |
// ------------------------------ | |
class Widget<View: UIView>: UIView { | |
var widgetFrame: CGRect { |
This file contains hidden or 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 todoUndoneClass = "list-group-item" , | |
todoDoneClass = "list-group-item list-group-item-success" | |
// 把事件註冊在 todo 的母階層 | |
document.getElementById("todo-todoList").addEventListener(function(e){ | |
// 母階層裡面的物件 | |
if(e.target.className === todoDoneClass){ | |
e.target.className = todoUndoneClass | |
}else { |
NewerOlder