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
//CKEditor | |
$('#texta').blur(function(){ | |
var nsn = $('#texta').val(); | |
$.ajax({ | |
type: 'GET', | |
url:'ajaxs.php', | |
data:'nsn=' + nsn, | |
dataType: 'json', | |
success:function(data){ | |
$('#sch_name').val(data.news_title); |
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
$jquery=" | |
<script type='text/javascript'> | |
if(typeof jQuery == 'undefined') { | |
document.write(\"<script type='text/javascript' src='//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js'><\/script>\"); | |
} | |
</script> | |
"; | |
$jquery_ui=" |
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
<?php | |
/** | |
* PHPWord | |
* | |
* Copyright (c) 2011 PHPWord | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either | |
* version 2.1 of the License, or (at your option) any later version. |
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
<?php | |
/* Last updated with phpFlickr 3.1 | |
* | |
* Edit these variables to reflect the values you need. $default_redirect | |
* and $permissions are only important if you are linking here instead of | |
* using phpFlickr::auth() from another page or if you set the remember_uri | |
* argument to false. | |
*/ | |
// Include configuration file |
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
//參考資料http://www.pressinganswer.com/883320/jquery-validation-engine-validation-file-mime-type | |
//jquery.validationEngine.js增加 | |
case "checkFileType": | |
errorMsg = methods._checkFileType(field, rules, i, options); | |
break; | |
//jquery.validationEngine.js增加 | |
_checkFileType: function (field, rules, i, options) { | |
var uploadedFile = $(field); |
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
//參考資料http://wordpress.org/support/topic/plugin-front-end-editor-text-area-become-very-narrow | |
尋找 | |
(parseInt(e.getStyle('width')) || e.clientWidth) | |
取代為 | |
(e.clientWidth || parseInt(e.getStyle('width'))) |
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() { | |
var flickerAPI = "https://api.flickr.com/services/rest/?"; | |
$.getJSON(flickerAPI, { | |
format: "json" | |
}) | |
.done(function(data) { | |
$.each(data.photoset.photo, function(i, item) { | |
$("<img>").attr("src", "https://farm"+item.farm+".staticflickr.com/"+item.server+"/"+item.id+"_"+item.secret+"_m.jpg").appendTo("#images"); | |
if (i === 3) { | |
return false; |
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 type='text/javascript' src='http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/jquery.validate.min.js'></script> | |
<script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.13.1/localization/messages_zh_tw.js"></script> | |
<script type="text/javascript" src="<{$xoops_url}>/modules/eguide/class/jquery-validate.bootstrap-tooltip.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function () { | |
$('#register-form').validate({ | |
rules: { | |
<{foreach from=$form.check key=name item=msg}> | |
'<{$name}>': 'required', | |
<{/foreach}> |
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 type='text/javascript'> | |
$(function() { | |
for (i = new Date().getFullYear(); i > 1900; i--) { | |
$('.year_$fname').append($('<option />').val(i).html(i)); | |
} | |
for (i = 1; i < 13; i++) { | |
$('.month_$fname').append($('<option />').val(i).html(i)); | |
} | |
updateNumberOfDays(); | |
$('.year_$fname, .month_$fname').on('change', function() { |
OlderNewer