Skip to content

Instantly share code, notes, and snippets.

@fronteer-kr
fronteer-kr / new_gist_file_0
Last active August 29, 2015 14:02
jQuery Animate - 변수값만으로도..
var rn = Math.round(Math.random() * 99999);
$("#msg").text("Random Number = " + rn);
var $el = $("#number1");
$({ val : 0 }).animate({ val : rn }, {
duration: 2000,
step: function() {
$el.text(Math.floor(this.val).cf());
},
complete: function() {
// 소스출처 : http://www.kma.go.kr/weather/forecast/digital_forecast.jsp 내부에 있음
// 기상청에서 이걸 왜 공식적으로 공개하지 않을까?
//
// (사용 예)
// var rs = dfs_xy_conv("toLL","60","127");
// console.log(rs.lat, rs.lng);
//
<script language="javascript">
//<!--
public class app1 extends CordovaActivity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
super.init();
// Set by <content src="index.html" /> in config.xml
//-------------------------------------------------------
PAGE = {
AUTH: { read_cmt: true, write_cmt: true },
// AUTH : !{JSON.stringify(page_auth)},
COMMENT: true,
onOpen: function () {
fnInit();
},
User-agent: *
Disallow: /temp
Disallow: /internal
Disallow: /bugs
Allow: /
User-agent: Googlebot
Disallow: /no-google/personal_page.html
Allow: /
{
"coord": {
"lon": 126.98,
"lat": 37.57
},
"sys": {
"message": 0.3162,
"country": "KR",
"sunrise": 1404245699,
"sunset": 1404298641
;(function ($, window, document, undefined) {
$.fn.sectionCollapsible = function(options) {
var defaults = {
duration : 500, // animation 시간
easing : "swing" // animation 유형
};
var settings = $.extend({}, defaults, options);
var PLUGIN_NS = "metaApp",
defaults = {
basename : "hello",
template : { list: '', view: '', form: '' },
ajax : {
_r : { url: '', _r: 10 }, // 목록
_r1 : { url: '' }, // 상세보기(+수정용) (1건 조회)
_c : { url: '', rules: {} }, // 등록처리
_u : { url: '', rules: {} }, // 수정처리
_d : { url: '' } // 삭제처리
var PLUGIN_NS = "metaBBSList",
defaults = {
basename : "bbs",
auth : {},
mid : 0, // 게시판 id
bid : 0, // 현재 선택한 게시물 id (active bid) - View 하단 목록인 경우
theme : "basic",
ajax : {
_r : { url: '', _r: 10 }, // 목록
_r1 : { url: '' }, // 상세보기(+수정용) (1건 조회)
var PLUGIN_NS = "metaFileList",
defaults = {
basename : "file",
auth : {},
bid : 0,
template : { list: '' },
ajax : {
_r : { url: '', upload_gid: '' }, // 목록
_d : { url: '' } // 삭제처리
},