-
Calorie Smile
mklink /D Y:\Apache24\htdocs\hn-app-genki__\src Z:\K5\Personium\forked\calorie-smile-app\src
-
UnitManager
mklink /D Y:\Apache24\htdocs\unit-manager Z:\K5\Personium\forked\unit-manager\src
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
$('dispMsg').html(i18next.t("msg.error.fileNotFound"); |
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
i18next | |
.use(i18nextXHRBackend) | |
.use(i18nextBrowserLanguageDetector) | |
.init({ | |
detection: { | |
lookupCookie: "i18nextFujitsu" | |
}, | |
fallbackLng: 'en', | |
debug: true, | |
backend: { |
Modifying element's attribute does not work.
is.displaySearchResult = function(count) {
$('#searchResult')
.attr("data-i18n", "candidateFilter:searchResult")
.attr("data-i18n-options", '{ "count": ' + count + ' }')
.localize();
};
Passing the data-i18n-options as options of localize.
I have defined the following strings.
var sTerm="2017/08/01";
var eTerm="2017/09/01";
The following will produce escaped "/" as "/".
$("#refSearchTerm").attr("data-i18n","glossary:survey.surveyPeriod").localize({ startDate: sTerm, endDate: eTerm });
2017/08/01 ~ 2017/09/01
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 checkInput(id, msgId) { | |
/* | |
* someFieldsMissingValue is true if at least one input element's value is empty | |
*/ | |
var someFieldsMissingValue = _.some( | |
$("form input"), | |
function(aDom) { | |
return _.isEmpty($(aDom).val()); | |
} | |
); |
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 validateCheck(displayNameID, formFieldMsgId) { | |
var displayName = $("#" + displayNameID).val(); | |
var MINLENGTH = 1; | |
var MAXLENGTH = 128; | |
var allowedLetters = /^[0-9a-zA-Z-_]+$/; | |
var lenDisplayName = displayName.length; | |
$("#" + formFieldMsgId).empty(); | |
if(lenDisplayName < MINLENGTH || displayName == undefined || displayName == null || displayName == "") { | |
$("#" + formFieldMsgId).html(i18next.t("create_form.validate.warning.less_minimum_length", { value: MINLENGTH})); |
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
javascript:(function(){var target = window.prompt("Enter a url or string to encode in QR code!","");if(target!=null){var url="https://chart.googleapis.com/chart?chs=150x150&cht=qr&chl=" + target;var win=window.open(url, "_blank")}})() |
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 charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.19.3/moment-with-locales.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<style> | |
input[type="text"] { | |
margin-right: 10px; |
OlderNewer