Commit 78a7569e by Masaru Abe

#12264 コンテンツ共有機能追加

parent 518c4d71
......@@ -94,27 +94,7 @@
</div>
</header>
<section class="sectionbackup_logout" id="dlgConfirmBackup1">
<h1><label class="lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
<p class="message"><label lang="txtLogoutBkMsg" class="lang"><!--ログアウトする前にバックアップしますか?--></label></p>
<p class="message-options">
<label class="option_backup">
<label lang="txtBkSelectData" class="lang"><!--バックアップするデータを選択してください。--></label><br />
<input type="checkbox" id="chkBkAllMarking" class="chkbx" checked="checked" /><label for="chkBkAllMarking" lang="txtBkMarking" class="lang"><!--マーキング--></label>
<input type="checkbox" id="chkBkAllMemo" class="chkbx" checked="checked" /><label for="chkBkAllMemo" lang="txtBkMemo" class="lang"><!--メモ--></label>
<input type="checkbox" id="chkBkAllShiori" class="chkbx" checked="checked" /><label for="chkBkAllShiori" lang="txtBkShiori" class="lang"><!--しおり--></label>
</label>
</p>
<p class="notice">
<input type="checkbox" id="chkRememberBackup" /><label for="chkRememberBackup" class="lang" lang="txtLogoutOptBkCfm"><!--今回の行動を記憶し、次回から確認せずに、同じことをする。--></label>
</p>
<p class="backupbtn">
<a class="cancel lang" href="#" lang="dspBkCancel" id="dlgConfirmBackup-withoutbackup"><!--バックアップしないでログアウト--></a>
<a class="ok lang" href="#" id="dlgConfirmBackup-backup" lang="dspBkOK"><!--バックアップしてログアウト--></a>
</p>
</section>
<div id="inc_backup"></div>
<div class="wrapper">
<div id="main">
......
/**
* rome - Customizable date (and time) picker. Opt-in UI, no jQuery!
* @version v1.1.6
* @link https://github.com/bevacqua/rome
* @license MIT
*/
.rd-container {
display: inline-block;
border: 1px solid #333;
background-color: #fff;
padding: 10px;
text-align: center;
z-index: 200000; /* agt add */
}
.rd-container-attachment {
position: absolute;
}
.rd-month {
display: inline-block;
margin-right: 25px;
}
.rd-month:last-child {
margin-right: 0;
}
.rd-back,
.rd-next {
cursor: pointer;
border: none;
outline: none;
background: none;
padding: 0;
margin: 0;
}
.rd-back[disabled],
.rd-next[disabled] {
cursor: default;
}
.rd-back {
float: left;
}
.rd-next {
float: right;
}
.rd-back:before {
display: block;
content: '\2190';
}
.rd-next:before {
display: block;
content: '\2192';
}
.rd-day-body {
cursor: pointer;
text-align: center;
}
.rd-day-selected,
.rd-time-selected,
.rd-time-option:hover {
cursor: pointer;
background-color: #333;
color: #fff;
}
.rd-day-prev-month,
.rd-day-next-month {
color: #999;
}
.rd-day-disabled {
cursor: default;
color: #fcc;
}
.rd-time {
position: relative;
display: inline-block;
margin-top: 5px;
min-width: 80px;
}
.rd-time-list {
display: none;
position: absolute;
overflow-y: scroll;
max-height: 160px;
left: 0;
right: 0;
background-color: #fff;
color: #333;
}
.rd-time-selected {
padding: 5px;
}
.rd-time-option {
padding: 5px;
}
.rd-day-concealed {
visibility: hidden;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
// rome@v1.1.6, MIT licensed. https://github.com/bevacqua/rome
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;"undefined"!=typeof window?e=window:"undefined"!=typeof global?e=global:"undefined"!=typeof self&&(e=self),e.rome=t()}}(function(){var t;return function e(t,n,r){function a(o,s){if(!n[o]){if(!t[o]){var u="function"==typeof require&&require;if(!s&&u)return u(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var c=n[o]={exports:{}};t[o][0].call(c.exports,function(e){var n=t[o][1][e];return a(n?n:e)},c,c.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof require&&require,o=0;o<r.length;o++)a(r[o]);return a}({1:[function(t,e){function n(){}var r=e.exports={};r.nextTick=function(){var t="undefined"!=typeof window&&window.setImmediate,e="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(t)return function(t){return window.setImmediate(t)};if(e){var n=[];return window.addEventListener("message",function(t){var e=t.source;if((e===window||null===e)&&"process-tick"===t.data&&(t.stopPropagation(),n.length>0)){var r=n.shift();r()}},!0),function(t){n.push(t),window.postMessage("process-tick","*")}}return function(t){setTimeout(t,0)}}(),r.title="browser",r.browser=!0,r.env={},r.argv=[],r.on=n,r.addListener=n,r.once=n,r.off=n,r.removeListener=n,r.removeAllListeners=n,r.emit=n,r.binding=function(){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(){throw new Error("process.chdir is not supported")}},{}],2:[function(t,e){e.exports=t("./src/contra.emitter.js")},{"./src/contra.emitter.js":3}],3:[function(t,e){(function(t){!function(n,r){"use strict";function a(t,e){return Array.prototype.slice.call(t,e)}function i(t,e,n){t&&s(function(){t.apply(n||null,e||[])})}function o(t,e){var n=e||{},o={};return t===r&&(t={}),t.on=function(e,n){return o[e]?o[e].push(n):o[e]=[n],t},t.once=function(e,n){return n._once=!0,t.on(e,n),t},t.off=function(e,n){var r=arguments.length;if(1===r)delete o[e];else if(0===r)o={};else{var a=o[e];if(!a)return t;a.splice(a.indexOf(n),1)}return t},t.emit=function(){var e=a(arguments),r=e.shift(),s=o[r];if("error"===r&&n.throws!==!1&&!s)throw 1===e.length?e[0]:e;return s?(o[r]=s.filter(function(r){return n.async?i(r,e,t):r.apply(t,e),!r._once}),t):t},t}var s,u=""+r,c="function"==typeof setImmediate;s=c?function(t){setImmediate(t)}:typeof t!==u&&t.nextTick?t.nextTick:function(t){setTimeout(t,0)},typeof e!==u&&e.exports?e.exports=o:(n.contra=n.contra||{},n.contra.emitter=o)}(this)}).call(this,t("FWaASH"))},{FWaASH:1}],4:[function(t,e){function n(t,e,n){var s=!0,u=!0;if(!a(t))throw new TypeError;return n===!1?s=!1:i(n)&&(s="leading"in n?n.leading:s,u="trailing"in n?n.trailing:u),o.leading=s,o.maxWait=e,o.trailing=u,r(t,e,o)}var r=t("lodash.debounce"),a=t("lodash.isfunction"),i=t("lodash.isobject"),o={leading:!1,maxWait:0,trailing:!1};e.exports=n},{"lodash.debounce":5,"lodash.isfunction":8,"lodash.isobject":9}],5:[function(t,e){function n(t,e,n){var s,u,c,l,d,f,h,m=0,y=!1,p=!0;if(!r(t))throw new TypeError;if(e=o(0,e)||0,n===!0){var _=!0;p=!1}else a(n)&&(_=n.leading,y="maxWait"in n&&(o(e,n.maxWait)||0),p="trailing"in n?n.trailing:p);var v=function(){var n=e-(i()-l);if(0>=n){u&&clearTimeout(u);var r=h;u=f=h=void 0,r&&(m=i(),c=t.apply(d,s),f||u||(s=d=null))}else f=setTimeout(v,n)},g=function(){f&&clearTimeout(f),u=f=h=void 0,(p||y!==e)&&(m=i(),c=t.apply(d,s),f||u||(s=d=null))};return function(){if(s=arguments,l=i(),d=this,h=p&&(f||!_),y===!1)var n=_&&!f;else{u||_||(m=l);var r=y-(l-m),a=0>=r;a?(u&&(u=clearTimeout(u)),m=l,c=t.apply(d,s)):u||(u=setTimeout(g,r))}return a&&f?f=clearTimeout(f):f||e===y||(f=setTimeout(v,e)),n&&(a=!0,c=t.apply(d,s)),!a||f||u||(s=d=null),c}}var r=t("lodash.isfunction"),a=t("lodash.isobject"),i=t("lodash.now"),o=Math.max;e.exports=n},{"lodash.isfunction":8,"lodash.isobject":9,"lodash.now":6}],6:[function(t,e){var n=t("lodash._isnative"),r=n(r=Date.now)&&r||function(){return(new Date).getTime()};e.exports=r},{"lodash._isnative":7}],7:[function(t,e){function n(t){return"function"==typeof t&&i.test(t)}var r=Object.prototype,a=r.toString,i=RegExp("^"+String(a).replace(/[.*+?^${}()|[\]\\]/g,"\\$&").replace(/toString| for [^\]]+/g,".*?")+"$");e.exports=n},{}],8:[function(t,e){function n(t){return"function"==typeof t}e.exports=n},{}],9:[function(t,e){function n(t){return!(!t||!r[typeof t])}var r=t("lodash._objecttypes");e.exports=n},{"lodash._objecttypes":10}],10:[function(t,e){var n={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1};e.exports=n},{}],11:[function(e,n){(function(r){(function(a){function i(t,e,n){switch(arguments.length){case 2:return null!=t?t:e;case 3:return null!=t?t:null!=e?e:n;default:throw new Error("Implement me")}}function o(t,e){return Se.call(t,e)}function s(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function u(t){De.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function c(t,e){var n=!0;return p(function(){return n&&(u(t),n=!1),e.apply(this,arguments)},e)}function l(t,e){wn[t]||(u(e),wn[t]=!0)}function d(t,e){return function(n){return g(t.call(this,n),e)}}function f(t,e){return function(n){return this.localeData().ordinal(t.call(this,n),e)}}function h(){}function m(t,e){e!==!1&&E(t),_(this,t),this._d=new Date(+t._d)}function y(t){var e=S(t),n=e.year||0,r=e.quarter||0,a=e.month||0,i=e.week||0,o=e.day||0,s=e.hour||0,u=e.minute||0,c=e.second||0,l=e.millisecond||0;this._milliseconds=+l+1e3*c+6e4*u+36e5*s,this._days=+o+7*i,this._months=+a+3*r+12*n,this._data={},this._locale=De.localeData(),this._bubble()}function p(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function _(t,e){var n,r,a;if("undefined"!=typeof e._isAMomentObject&&(t._isAMomentObject=e._isAMomentObject),"undefined"!=typeof e._i&&(t._i=e._i),"undefined"!=typeof e._f&&(t._f=e._f),"undefined"!=typeof e._l&&(t._l=e._l),"undefined"!=typeof e._strict&&(t._strict=e._strict),"undefined"!=typeof e._tzm&&(t._tzm=e._tzm),"undefined"!=typeof e._isUTC&&(t._isUTC=e._isUTC),"undefined"!=typeof e._offset&&(t._offset=e._offset),"undefined"!=typeof e._pf&&(t._pf=e._pf),"undefined"!=typeof e._locale&&(t._locale=e._locale),Ge.length>0)for(n in Ge)r=Ge[n],a=e[r],"undefined"!=typeof a&&(t[r]=a);return t}function v(t){return 0>t?Math.ceil(t):Math.floor(t)}function g(t,e,n){for(var r=""+Math.abs(t),a=t>=0;r.length<e;)r="0"+r;return(a?n?"+":"":"-")+r}function w(t,e){var n={milliseconds:0,months:0};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function b(t,e){var n;return e=U(e,t),t.isBefore(e)?n=w(t,e):(n=w(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n}function D(t,e){return function(n,r){var a,i;return null===r||isNaN(+r)||(l(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period)."),i=n,n=r,r=i),n="string"==typeof n?+n:n,a=De.duration(n,r),M(this,a,t),this}}function M(t,e,n,r){var a=e._milliseconds,i=e._days,o=e._months;r=null==r?!0:r,a&&t._d.setTime(+t._d+a*n),i&&pe(t,"Date",ye(t,"Date")+i*n),o&&me(t,ye(t,"Month")+o*n),r&&De.updateOffset(t,i||o)}function Y(t){return"[object Array]"===Object.prototype.toString.call(t)}function k(t){return"[object Date]"===Object.prototype.toString.call(t)||t instanceof Date}function x(t,e,n){var r,a=Math.min(t.length,e.length),i=Math.abs(t.length-e.length),o=0;for(r=0;a>r;r++)(n&&t[r]!==e[r]||!n&&F(t[r])!==F(e[r]))&&o++;return o+i}function T(t){if(t){var e=t.toLowerCase().replace(/(.)s$/,"$1");t=hn[t]||mn[e]||e}return t}function S(t){var e,n,r={};for(n in t)o(t,n)&&(e=T(n),e&&(r[e]=t[n]));return r}function O(t){var e,n;if(0===t.indexOf("week"))e=7,n="day";else{if(0!==t.indexOf("month"))return;e=12,n="month"}De[t]=function(r,i){var o,s,u=De._locale[t],c=[];if("number"==typeof r&&(i=r,r=a),s=function(t){var e=De().utc().set(n,t);return u.call(De._locale,e,r||"")},null!=i)return s(i);for(o=0;e>o;o++)c.push(s(o));return c}}function F(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=e>=0?Math.floor(e):Math.ceil(e)),n}function C(t,e){return new Date(Date.UTC(t,e+1,0)).getUTCDate()}function A(t,e,n){return le(De([t,11,31+e-n]),e,n).week}function I(t){return W(t)?366:365}function W(t){return t%4===0&&t%100!==0||t%400===0}function E(t){var e;t._a&&-2===t._pf.overflow&&(e=t._a[Fe]<0||t._a[Fe]>11?Fe:t._a[Ce]<1||t._a[Ce]>C(t._a[Oe],t._a[Fe])?Ce:t._a[Ae]<0||t._a[Ae]>23?Ae:t._a[Ie]<0||t._a[Ie]>59?Ie:t._a[We]<0||t._a[We]>59?We:t._a[Ee]<0||t._a[Ee]>999?Ee:-1,t._pf._overflowDayOfYear&&(Oe>e||e>Ce)&&(e=Ce),t._pf.overflow=e)}function H(t){return null==t._isValid&&(t._isValid=!isNaN(t._d.getTime())&&t._pf.overflow<0&&!t._pf.empty&&!t._pf.invalidMonth&&!t._pf.nullInput&&!t._pf.invalidFormat&&!t._pf.userInvalidated,t._strict&&(t._isValid=t._isValid&&0===t._pf.charsLeftOver&&0===t._pf.unusedTokens.length)),t._isValid}function G(t){return t?t.toLowerCase().replace("_","-"):t}function L(t){for(var e,n,r,a,i=0;i<t.length;){for(a=G(t[i]).split("-"),e=a.length,n=G(t[i+1]),n=n?n.split("-"):null;e>0;){if(r=N(a.slice(0,e).join("-")))return r;if(n&&n.length>=e&&x(a,n,!0)>=e-1)break;e--}i++}return null}function N(t){var n=null;if(!He[t]&&Le)try{n=De.locale(),e("./locale/"+t),De.locale(n)}catch(r){}return He[t]}function U(t,e){return e._isUTC?De(t).zone(e._offset||0):De(t).local()}function z(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function P(t){var e,n,r=t.match(Pe);for(e=0,n=r.length;n>e;e++)r[e]=gn[r[e]]?gn[r[e]]:z(r[e]);return function(a){var i="";for(e=0;n>e;e++)i+=r[e]instanceof Function?r[e].call(a,t):r[e];return i}}function j(t,e){return t.isValid()?(e=V(e,t.localeData()),yn[e]||(yn[e]=P(e)),yn[e](t)):t.localeData().invalidDate()}function V(t,e){function n(t){return e.longDateFormat(t)||t}var r=5;for(je.lastIndex=0;r>=0&&je.test(t);)t=t.replace(je,n),je.lastIndex=0,r-=1;return t}function B(t,e){var n,r=e._strict;switch(t){case"Q":return tn;case"DDDD":return nn;case"YYYY":case"GGGG":case"gggg":return r?rn:Ze;case"Y":case"G":case"g":return on;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return r?an:qe;case"S":if(r)return tn;case"SS":if(r)return en;case"SSS":if(r)return nn;case"DDD":return Be;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return $e;case"a":case"A":return e._locale._meridiemParse;case"X":return Xe;case"Z":case"ZZ":return Je;case"T":return Qe;case"SSSS":return Re;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return r?en:Ve;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Ve;case"Do":return Ke;default:return n=new RegExp(te(K(t.replace("\\","")),"i"))}}function Z(t){t=t||"";var e=t.match(Je)||[],n=e[e.length-1]||[],r=(n+"").match(dn)||["-",0,0],a=+(60*r[1])+F(r[2]);return"+"===r[0]?-a:a}function q(t,e,n){var r,a=n._a;switch(t){case"Q":null!=e&&(a[Fe]=3*(F(e)-1));break;case"M":case"MM":null!=e&&(a[Fe]=F(e)-1);break;case"MMM":case"MMMM":r=n._locale.monthsParse(e),null!=r?a[Fe]=r:n._pf.invalidMonth=e;break;case"D":case"DD":null!=e&&(a[Ce]=F(e));break;case"Do":null!=e&&(a[Ce]=F(parseInt(e,10)));break;case"DDD":case"DDDD":null!=e&&(n._dayOfYear=F(e));break;case"YY":a[Oe]=De.parseTwoDigitYear(e);break;case"YYYY":case"YYYYY":case"YYYYYY":a[Oe]=F(e);break;case"a":case"A":n._isPm=n._locale.isPM(e);break;case"H":case"HH":case"h":case"hh":a[Ae]=F(e);break;case"m":case"mm":a[Ie]=F(e);break;case"s":case"ss":a[We]=F(e);break;case"S":case"SS":case"SSS":case"SSSS":a[Ee]=F(1e3*("0."+e));break;case"X":n._d=new Date(1e3*parseFloat(e));break;case"Z":case"ZZ":n._useUTC=!0,n._tzm=Z(e);break;case"dd":case"ddd":case"dddd":r=n._locale.weekdaysParse(e),null!=r?(n._w=n._w||{},n._w.d=r):n._pf.invalidWeekday=e;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":t=t.substr(0,1);case"gggg":case"GGGG":case"GGGGG":t=t.substr(0,2),e&&(n._w=n._w||{},n._w[t]=F(e));break;case"gg":case"GG":n._w=n._w||{},n._w[t]=De.parseTwoDigitYear(e)}}function R(t){var e,n,r,a,o,s,u;e=t._w,null!=e.GG||null!=e.W||null!=e.E?(o=1,s=4,n=i(e.GG,t._a[Oe],le(De(),1,4).year),r=i(e.W,1),a=i(e.E,1)):(o=t._locale._week.dow,s=t._locale._week.doy,n=i(e.gg,t._a[Oe],le(De(),o,s).year),r=i(e.w,1),null!=e.d?(a=e.d,o>a&&++r):a=null!=e.e?e.e+o:o),u=de(n,r,a,s,o),t._a[Oe]=u.year,t._dayOfYear=u.dayOfYear}function $(t){var e,n,r,a,o=[];if(!t._d){for(r=Q(t),t._w&&null==t._a[Ce]&&null==t._a[Fe]&&R(t),t._dayOfYear&&(a=i(t._a[Oe],r[Oe]),t._dayOfYear>I(a)&&(t._pf._overflowDayOfYear=!0),n=oe(a,0,t._dayOfYear),t._a[Fe]=n.getUTCMonth(),t._a[Ce]=n.getUTCDate()),e=0;3>e&&null==t._a[e];++e)t._a[e]=o[e]=r[e];for(;7>e;e++)t._a[e]=o[e]=null==t._a[e]?2===e?1:0:t._a[e];t._d=(t._useUTC?oe:ie).apply(null,o),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()+t._tzm)}}function J(t){var e;t._d||(e=S(t._i),t._a=[e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond],$(t))}function Q(t){var e=new Date;return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function X(t){if(t._f===De.ISO_8601)return void ne(t);t._a=[],t._pf.empty=!0;var e,n,r,a,i,o=""+t._i,s=o.length,u=0;for(r=V(t._f,t._locale).match(Pe)||[],e=0;e<r.length;e++)a=r[e],n=(o.match(B(a,t))||[])[0],n&&(i=o.substr(0,o.indexOf(n)),i.length>0&&t._pf.unusedInput.push(i),o=o.slice(o.indexOf(n)+n.length),u+=n.length),gn[a]?(n?t._pf.empty=!1:t._pf.unusedTokens.push(a),q(a,n,t)):t._strict&&!n&&t._pf.unusedTokens.push(a);t._pf.charsLeftOver=s-u,o.length>0&&t._pf.unusedInput.push(o),t._isPm&&t._a[Ae]<12&&(t._a[Ae]+=12),t._isPm===!1&&12===t._a[Ae]&&(t._a[Ae]=0),$(t),E(t)}function K(t){return t.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,r,a){return e||n||r||a})}function te(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ee(t){var e,n,r,a,i;if(0===t._f.length)return t._pf.invalidFormat=!0,void(t._d=new Date(0/0));for(a=0;a<t._f.length;a++)i=0,e=_({},t),e._pf=s(),e._f=t._f[a],X(e),H(e)&&(i+=e._pf.charsLeftOver,i+=10*e._pf.unusedTokens.length,e._pf.score=i,(null==r||r>i)&&(r=i,n=e));p(t,n||e)}function ne(t){var e,n,r=t._i,a=sn.exec(r);if(a){for(t._pf.iso=!0,e=0,n=cn.length;n>e;e++)if(cn[e][1].exec(r)){t._f=cn[e][0]+(a[6]||" ");break}for(e=0,n=ln.length;n>e;e++)if(ln[e][1].exec(r)){t._f+=ln[e][0];break}r.match(Je)&&(t._f+="Z"),X(t)}else t._isValid=!1}function re(t){ne(t),t._isValid===!1&&(delete t._isValid,De.createFromInputFallback(t))}function ae(t){var e,n=t._i;n===a?t._d=new Date:k(n)?t._d=new Date(+n):null!==(e=Ne.exec(n))?t._d=new Date(+e[1]):"string"==typeof n?re(t):Y(n)?(t._a=n.slice(0),$(t)):"object"==typeof n?J(t):"number"==typeof n?t._d=new Date(n):De.createFromInputFallback(t)}function ie(t,e,n,r,a,i,o){var s=new Date(t,e,n,r,a,i,o);return 1970>t&&s.setFullYear(t),s}function oe(t){var e=new Date(Date.UTC.apply(null,arguments));return 1970>t&&e.setUTCFullYear(t),e}function se(t,e){if("string"==typeof t)if(isNaN(t)){if(t=e.weekdaysParse(t),"number"!=typeof t)return null}else t=parseInt(t,10);return t}function ue(t,e,n,r,a){return a.relativeTime(e||1,!!n,t,r)}function ce(t,e,n){var r=De.duration(t).abs(),a=Te(r.as("s")),i=Te(r.as("m")),o=Te(r.as("h")),s=Te(r.as("d")),u=Te(r.as("M")),c=Te(r.as("y")),l=a<pn.s&&["s",a]||1===i&&["m"]||i<pn.m&&["mm",i]||1===o&&["h"]||o<pn.h&&["hh",o]||1===s&&["d"]||s<pn.d&&["dd",s]||1===u&&["M"]||u<pn.M&&["MM",u]||1===c&&["y"]||["yy",c];return l[2]=e,l[3]=+t>0,l[4]=n,ue.apply({},l)}function le(t,e,n){var r,a=n-e,i=n-t.day();return i>a&&(i-=7),a-7>i&&(i+=7),r=De(t).add(i,"d"),{week:Math.ceil(r.dayOfYear()/7),year:r.year()}}function de(t,e,n,r,a){var i,o,s=oe(t,0,1).getUTCDay();return s=0===s?7:s,n=null!=n?n:a,i=a-s+(s>r?7:0)-(a>s?7:0),o=7*(e-1)+(n-a)+i+1,{year:o>0?t:t-1,dayOfYear:o>0?o:I(t-1)+o}}function fe(t){var e=t._i,n=t._f;return t._locale=t._locale||De.localeData(t._l),null===e||n===a&&""===e?De.invalid({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),De.isMoment(e)?new m(e,!0):(n?Y(n)?ee(t):X(t):ae(t),new m(t)))}function he(t,e){var n,r;if(1===e.length&&Y(e[0])&&(e=e[0]),!e.length)return De();for(n=e[0],r=1;r<e.length;++r)e[r][t](n)&&(n=e[r]);return n}function me(t,e){var n;return"string"==typeof e&&(e=t.localeData().monthsParse(e),"number"!=typeof e)?t:(n=Math.min(t.date(),C(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t)}function ye(t,e){return t._d["get"+(t._isUTC?"UTC":"")+e]()}function pe(t,e,n){return"Month"===e?me(t,n):t._d["set"+(t._isUTC?"UTC":"")+e](n)}function _e(t,e){return function(n){return null!=n?(pe(this,t,n),De.updateOffset(this,e),this):ye(this,t)}}function ve(t){return 400*t/146097}function ge(t){return 146097*t/400}function we(t){De.duration.fn[t]=function(){return this._data[t]}}function be(t){"undefined"==typeof ender&&(Me=xe.moment,xe.moment=t?c("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",De):De)}for(var De,Me,Ye,ke="2.8.2",xe="undefined"!=typeof r?r:this,Te=Math.round,Se=Object.prototype.hasOwnProperty,Oe=0,Fe=1,Ce=2,Ae=3,Ie=4,We=5,Ee=6,He={},Ge=[],Le="undefined"!=typeof n&&n.exports,Ne=/^\/?Date\((\-?\d+)/i,Ue=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,ze=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Pe=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,je=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,Ve=/\d\d?/,Be=/\d{1,3}/,Ze=/\d{1,4}/,qe=/[+\-]?\d{1,6}/,Re=/\d+/,$e=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Je=/Z|[\+\-]\d\d:?\d\d/gi,Qe=/T/i,Xe=/[\+\-]?\d+(\.\d{1,3})?/,Ke=/\d{1,2}/,tn=/\d/,en=/\d\d/,nn=/\d{3}/,rn=/\d{4}/,an=/[+-]?\d{6}/,on=/[+-]?\d+/,sn=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,un="YYYY-MM-DDTHH:mm:ssZ",cn=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],ln=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],dn=/([\+\-]|\d\d)/gi,fn=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),hn={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},mn={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},yn={},pn={s:45,m:45,h:22,d:26,M:11},_n="DDD w W M D d".split(" "),vn="M D H h m s w W".split(" "),gn={M:function(){return this.month()+1},MMM:function(t){return this.localeData().monthsShort(this,t)},MMMM:function(t){return this.localeData().months(this,t)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(t){return this.localeData().weekdaysMin(this,t)},ddd:function(t){return this.localeData().weekdaysShort(this,t)},dddd:function(t){return this.localeData().weekdays(this,t)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return g(this.year()%100,2)},YYYY:function(){return g(this.year(),4)},YYYYY:function(){return g(this.year(),5)},YYYYYY:function(){var t=this.year(),e=t>=0?"+":"-";return e+g(Math.abs(t),6)},gg:function(){return g(this.weekYear()%100,2)},gggg:function(){return g(this.weekYear(),4)},ggggg:function(){return g(this.weekYear(),5)},GG:function(){return g(this.isoWeekYear()%100,2)},GGGG:function(){return g(this.isoWeekYear(),4)},GGGGG:function(){return g(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.localeData().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return F(this.milliseconds()/100)},SS:function(){return g(F(this.milliseconds()/10),2)},SSS:function(){return g(this.milliseconds(),3)},SSSS:function(){return g(this.milliseconds(),3)},Z:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+g(F(t/60),2)+":"+g(F(t)%60,2)},ZZ:function(){var t=-this.zone(),e="+";return 0>t&&(t=-t,e="-"),e+g(F(t/60),2)+g(F(t)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},wn={},bn=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];_n.length;)Ye=_n.pop(),gn[Ye+"o"]=f(gn[Ye],Ye);for(;vn.length;)Ye=vn.pop(),gn[Ye+Ye]=d(gn[Ye],2);gn.DDDD=d(gn.DDD,3),p(h.prototype,{set:function(t){var e,n;for(n in t)e=t[n],"function"==typeof e?this[n]=e:this["_"+n]=e},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(t){return this._months[t.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(t){return this._monthsShort[t.month()]},monthsParse:function(t){var e,n,r;for(this._monthsParse||(this._monthsParse=[]),e=0;12>e;e++)if(this._monthsParse[e]||(n=De.utc([2e3,e]),r="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[e]=new RegExp(r.replace(".",""),"i")),this._monthsParse[e].test(t))return e},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(t){return this._weekdays[t.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(t){return this._weekdaysShort[t.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(t){return this._weekdaysMin[t.day()]},weekdaysParse:function(t){var e,n,r;for(this._weekdaysParse||(this._weekdaysParse=[]),e=0;7>e;e++)if(this._weekdaysParse[e]||(n=De([2e3,1]).day(e),r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[e]=new RegExp(r.replace(".",""),"i")),this._weekdaysParse[e].test(t))return e},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY LT",LLLL:"dddd, MMMM D, YYYY LT"},longDateFormat:function(t){var e=this._longDateFormat[t];return!e&&this._longDateFormat[t.toUpperCase()]&&(e=this._longDateFormat[t.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t]=e),e},isPM:function(t){return"p"===(t+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(t,e){var n=this._calendar[t];return"function"==typeof n?n.apply(e):n},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(t,e,n,r){var a=this._relativeTime[n];return"function"==typeof a?a(t,e,n,r):a.replace(/%d/i,t)},pastFuture:function(t,e){var n=this._relativeTime[t>0?"future":"past"];return"function"==typeof n?n(e):n.replace(/%s/i,e)},ordinal:function(t){return this._ordinal.replace("%d",t)},_ordinal:"%d",preparse:function(t){return t},postformat:function(t){return t},week:function(t){return le(t,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),De=function(t,e,n,r){var i;return"boolean"==typeof n&&(r=n,n=a),i={},i._isAMomentObject=!0,i._i=t,i._f=e,i._l=n,i._strict=r,i._isUTC=!1,i._pf=s(),fe(i)},De.suppressDeprecationWarnings=!1,De.createFromInputFallback=c("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(t){t._d=new Date(t._i)}),De.min=function(){var t=[].slice.call(arguments,0);return he("isBefore",t)},De.max=function(){var t=[].slice.call(arguments,0);return he("isAfter",t)},De.utc=function(t,e,n,r){var i;return"boolean"==typeof n&&(r=n,n=a),i={},i._isAMomentObject=!0,i._useUTC=!0,i._isUTC=!0,i._l=n,i._i=t,i._f=e,i._strict=r,i._pf=s(),fe(i).utc()},De.unix=function(t){return De(1e3*t)},De.duration=function(t,e){var n,r,a,i,s=t,u=null;return De.isDuration(t)?s={ms:t._milliseconds,d:t._days,M:t._months}:"number"==typeof t?(s={},e?s[e]=t:s.milliseconds=t):(u=Ue.exec(t))?(n="-"===u[1]?-1:1,s={y:0,d:F(u[Ce])*n,h:F(u[Ae])*n,m:F(u[Ie])*n,s:F(u[We])*n,ms:F(u[Ee])*n}):(u=ze.exec(t))?(n="-"===u[1]?-1:1,a=function(t){var e=t&&parseFloat(t.replace(",","."));return(isNaN(e)?0:e)*n},s={y:a(u[2]),M:a(u[3]),d:a(u[4]),h:a(u[5]),m:a(u[6]),s:a(u[7]),w:a(u[8])}):"object"==typeof s&&("from"in s||"to"in s)&&(i=b(De(s.from),De(s.to)),s={},s.ms=i.milliseconds,s.M=i.months),r=new y(s),De.isDuration(t)&&o(t,"_locale")&&(r._locale=t._locale),r},De.version=ke,De.defaultFormat=un,De.ISO_8601=function(){},De.momentProperties=Ge,De.updateOffset=function(){},De.relativeTimeThreshold=function(t,e){return pn[t]===a?!1:e===a?pn[t]:(pn[t]=e,!0)},De.lang=c("moment.lang is deprecated. Use moment.locale instead.",function(t,e){return De.locale(t,e)}),De.locale=function(t,e){var n;return t&&(n="undefined"!=typeof e?De.defineLocale(t,e):De.localeData(t),n&&(De.duration._locale=De._locale=n)),De._locale._abbr},De.defineLocale=function(t,e){return null!==e?(e.abbr=t,He[t]||(He[t]=new h),He[t].set(e),De.locale(t),He[t]):(delete He[t],null)},De.langData=c("moment.langData is deprecated. Use moment.localeData instead.",function(t){return De.localeData(t)}),De.localeData=function(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return De._locale;if(!Y(t)){if(e=N(t))return e;t=[t]}return L(t)},De.isMoment=function(t){return t instanceof m||null!=t&&o(t,"_isAMomentObject")},De.isDuration=function(t){return t instanceof y};for(Ye=bn.length-1;Ye>=0;--Ye)O(bn[Ye]);De.normalizeUnits=function(t){return T(t)},De.invalid=function(t){var e=De.utc(0/0);return null!=t?p(e._pf,t):e._pf.userInvalidated=!0,e},De.parseZone=function(){return De.apply(null,arguments).parseZone()},De.parseTwoDigitYear=function(t){return F(t)+(F(t)>68?1900:2e3)},p(De.fn=m.prototype,{clone:function(){return De(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var t=De(this).utc();return 0<t.year()&&t.year()<=9999?j(t,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):j(t,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var t=this;return[t.year(),t.month(),t.date(),t.hours(),t.minutes(),t.seconds(),t.milliseconds()]},isValid:function(){return H(this)},isDSTShifted:function(){return this._a?this.isValid()&&x(this._a,(this._isUTC?De.utc(this._a):De(this._a)).toArray())>0:!1},parsingFlags:function(){return p({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(t){return this.zone(0,t)},local:function(t){return this._isUTC&&(this.zone(0,t),this._isUTC=!1,t&&this.add(this._d.getTimezoneOffset(),"m")),this},format:function(t){var e=j(this,t||De.defaultFormat);return this.localeData().postformat(e)},add:D(1,"add"),subtract:D(-1,"subtract"),diff:function(t,e,n){var r,a,i=U(t,this),o=6e4*(this.zone()-i.zone());return e=T(e),"year"===e||"month"===e?(r=432e5*(this.daysInMonth()+i.daysInMonth()),a=12*(this.year()-i.year())+(this.month()-i.month()),a+=(this-De(this).startOf("month")-(i-De(i).startOf("month")))/r,a-=6e4*(this.zone()-De(this).startOf("month").zone()-(i.zone()-De(i).startOf("month").zone()))/r,"year"===e&&(a/=12)):(r=this-i,a="second"===e?r/1e3:"minute"===e?r/6e4:"hour"===e?r/36e5:"day"===e?(r-o)/864e5:"week"===e?(r-o)/6048e5:r),n?a:v(a)},from:function(t,e){return De.duration({to:this,from:t}).locale(this.locale()).humanize(!e)},fromNow:function(t){return this.from(De(),t)},calendar:function(t){var e=t||De(),n=U(e,this).startOf("day"),r=this.diff(n,"days",!0),a=-6>r?"sameElse":-1>r?"lastWeek":0>r?"lastDay":1>r?"sameDay":2>r?"nextDay":7>r?"nextWeek":"sameElse";return this.format(this.localeData().calendar(a,this))},isLeapYear:function(){return W(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(t){var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=se(t,this.localeData()),this.add(t-e,"d")):e},month:_e("Month",!0),startOf:function(t){switch(t=T(t)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===t?this.weekday(0):"isoWeek"===t&&this.isoWeekday(1),"quarter"===t&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(t){return t=T(t),this.startOf(t).add(1,"isoWeek"===t?"week":t).subtract(1,"ms")},isAfter:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)>+De(t).startOf(e)},isBefore:function(t,e){return e="undefined"!=typeof e?e:"millisecond",+this.clone().startOf(e)<+De(t).startOf(e)},isSame:function(t,e){return e=e||"ms",+this.clone().startOf(e)===+U(t,this).startOf(e)},min:c("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(t){return t=De.apply(null,arguments),this>t?this:t}),max:c("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(t){return t=De.apply(null,arguments),t>this?this:t}),zone:function(t,e){var n,r=this._offset||0;return null==t?this._isUTC?r:this._d.getTimezoneOffset():("string"==typeof t&&(t=Z(t)),Math.abs(t)<16&&(t=60*t),!this._isUTC&&e&&(n=this._d.getTimezoneOffset()),this._offset=t,this._isUTC=!0,null!=n&&this.subtract(n,"m"),r!==t&&(!e||this._changeInProgress?M(this,De.duration(r-t,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,De.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(t){return t=t?De(t).zone():0,(this.zone()-t)%60===0},daysInMonth:function(){return C(this.year(),this.month())},dayOfYear:function(t){var e=Te((De(this).startOf("day")-De(this).startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},quarter:function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},weekYear:function(t){var e=le(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==t?e:this.add(t-e,"y")},isoWeekYear:function(t){var e=le(this,1,4).year;return null==t?e:this.add(t-e,"y")},week:function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},isoWeek:function(t){var e=le(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},weekday:function(t){var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},isoWeekday:function(t){return null==t?this.day()||7:this.day(this.day()%7?t:t-7)},isoWeeksInYear:function(){return A(this.year(),1,4)
},weeksInYear:function(){var t=this.localeData()._week;return A(this.year(),t.dow,t.doy)},get:function(t){return t=T(t),this[t]()},set:function(t,e){return t=T(t),"function"==typeof this[t]&&this[t](e),this},locale:function(t){return t===a?this._locale._abbr:(this._locale=De.localeData(t),this)},lang:c("moment().lang() is deprecated. Use moment().localeData() instead.",function(t){return t===a?this.localeData():(this._locale=De.localeData(t),this)}),localeData:function(){return this._locale}}),De.fn.millisecond=De.fn.milliseconds=_e("Milliseconds",!1),De.fn.second=De.fn.seconds=_e("Seconds",!1),De.fn.minute=De.fn.minutes=_e("Minutes",!1),De.fn.hour=De.fn.hours=_e("Hours",!0),De.fn.date=_e("Date",!0),De.fn.dates=c("dates accessor is deprecated. Use date instead.",_e("Date",!0)),De.fn.year=_e("FullYear",!0),De.fn.years=c("years accessor is deprecated. Use year instead.",_e("FullYear",!0)),De.fn.days=De.fn.day,De.fn.months=De.fn.month,De.fn.weeks=De.fn.week,De.fn.isoWeeks=De.fn.isoWeek,De.fn.quarters=De.fn.quarter,De.fn.toJSON=De.fn.toISOString,p(De.duration.fn=y.prototype,{_bubble:function(){var t,e,n,r=this._milliseconds,a=this._days,i=this._months,o=this._data,s=0;o.milliseconds=r%1e3,t=v(r/1e3),o.seconds=t%60,e=v(t/60),o.minutes=e%60,n=v(e/60),o.hours=n%24,a+=v(n/24),s=v(ve(a)),a-=v(ge(s)),i+=v(a/30),a%=30,s+=v(i/12),i%=12,o.days=a,o.months=i,o.years=s},abs:function(){return this._milliseconds=Math.abs(this._milliseconds),this._days=Math.abs(this._days),this._months=Math.abs(this._months),this._data.milliseconds=Math.abs(this._data.milliseconds),this._data.seconds=Math.abs(this._data.seconds),this._data.minutes=Math.abs(this._data.minutes),this._data.hours=Math.abs(this._data.hours),this._data.months=Math.abs(this._data.months),this._data.years=Math.abs(this._data.years),this},weeks:function(){return v(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*F(this._months/12)},humanize:function(t){var e=ce(this,!t,this.localeData());return t&&(e=this.localeData().pastFuture(+this,e)),this.localeData().postformat(e)},add:function(t,e){var n=De.duration(t,e);return this._milliseconds+=n._milliseconds,this._days+=n._days,this._months+=n._months,this._bubble(),this},subtract:function(t,e){var n=De.duration(t,e);return this._milliseconds-=n._milliseconds,this._days-=n._days,this._months-=n._months,this._bubble(),this},get:function(t){return t=T(t),this[t.toLowerCase()+"s"]()},as:function(t){var e,n;if(t=T(t),e=this._days+this._milliseconds/864e5,"month"===t||"year"===t)return n=this._months+12*ve(e),"month"===t?n:n/12;switch(e+=ge(this._months/12),t){case"week":return e/7;case"day":return e;case"hour":return 24*e;case"minute":return 24*e*60;case"second":return 24*e*60*60;case"millisecond":return 24*e*60*60*1e3;default:throw new Error("Unknown unit "+t)}},lang:De.fn.lang,locale:De.fn.locale,toIsoString:c("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",function(){return this.toISOString()}),toISOString:function(){var t=Math.abs(this.years()),e=Math.abs(this.months()),n=Math.abs(this.days()),r=Math.abs(this.hours()),a=Math.abs(this.minutes()),i=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(t?t+"Y":"")+(e?e+"M":"")+(n?n+"D":"")+(r||a||i?"T":"")+(r?r+"H":"")+(a?a+"M":"")+(i?i+"S":""):"P0D"},localeData:function(){return this._locale}}),De.duration.fn.toString=De.duration.fn.toISOString;for(Ye in fn)o(fn,Ye)&&we(Ye.toLowerCase());De.duration.fn.asMilliseconds=function(){return this.as("ms")},De.duration.fn.asSeconds=function(){return this.as("s")},De.duration.fn.asMinutes=function(){return this.as("m")},De.duration.fn.asHours=function(){return this.as("h")},De.duration.fn.asDays=function(){return this.as("d")},De.duration.fn.asWeeks=function(){return this.as("weeks")},De.duration.fn.asMonths=function(){return this.as("M")},De.duration.fn.asYears=function(){return this.as("y")},De.locale("en",{ordinal:function(t){var e=t%10,n=1===F(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th";return t+n}}),Le?n.exports=De:"function"==typeof t&&t.amd?(t("moment",function(t,e,n){return n.config&&n.config()&&n.config().noGlobal===!0&&(xe.moment=Me),De}),be(!0)):be()}).call(this)}).call(this,"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],12:[function(t,e){for(var n=t("performance-now"),r="undefined"==typeof window?{}:window,a=["moz","webkit"],i="AnimationFrame",o=r["request"+i],s=r["cancel"+i]||r["cancelRequest"+i],u=0;u<a.length&&!o;u++)o=r[a[u]+"Request"+i],s=r[a[u]+"Cancel"+i]||r[a[u]+"CancelRequest"+i];if(!o||!s){var c=0,l=0,d=[],f=1e3/60;o=function(t){if(0===d.length){var e=n(),r=Math.max(0,f-(e-c));c=r+e,setTimeout(function(){var t=d.slice(0);d.length=0;for(var e=0;e<t.length;e++)t[e].cancelled||t[e].callback(c)},r)}return d.push({handle:++l,callback:t,cancelled:!1}),l},s=function(t){for(var e=0;e<d.length;e++)d[e].handle===t&&(d[e].cancelled=!0)}}e.exports=function(){return o.apply(r,arguments)},e.exports.cancel=function(){s.apply(r,arguments)}},{"performance-now":13}],13:[function(t,e){(function(t){(function(){var n,r,a;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof t&&null!==t&&t.hrtime?(e.exports=function(){return(n()-a)/1e6},r=t.hrtime,n=function(){var t;return t=r(),1e9*t[0]+t[1]},a=n()):Date.now?(e.exports=function(){return Date.now()-a},a=Date.now()):(e.exports=function(){return(new Date).getTime()-a},a=(new Date).getTime())}).call(this)}).call(this,t("FWaASH"))},{FWaASH:1}],14:[function(t,e){"use strict";function n(t,e){var n=u[t.id];return n&&n[e.id]}function r(t,e){var n=u[t.id];n||(n=u[t.id]={});var r=i(e);n[e.id]=r,t.on("data",r),t.on("destroyed",a.bind(null,t,e))}function a(t,e){var n=u[t.id];if(n){var r=n[e.id];t.off("data",r),delete n[e.id]}}function i(t){return function(){t.refresh()}}function o(t,e){s(e.associated)||n(t,e)||r(t,e)}var s=t("./isInput"),u={};e.exports={add:o,remove:a}},{"./isInput":25}],15:[function(t,e){"use strict";function n(t){function e(){return be}function n(n){return ue=l(n||t,be),de||(de=o({className:ue.styles.container})),he=r,fe=r,me=r,ye=r,ue.appendTo.appendChild(de),q(de),De=!1,ce=ue.initialValue?ue.initialValue:d.moment(),le=ce.clone(),be.container=de,be.destroyed=!1,be.destroy=y.bind(be,!1),be.emitValues=V,be.getDate=ie,be.getDateString=oe,be.getMoment=se,be.hide=F,be.options=_,be.options.reset=v,be.refresh=B,be.restore=e,be.setValue=Z,be.show=O,S(),p(),be.emit("ready",c(ue)),be}function y(t){return de&&de.parentNode.removeChild(de),ue&&p(!0),be.destroyed=!0,be.destroy=e,be.emitValues=e,be.getDate=m,be.getDateString=m,be.getMoment=m,be.hide=e,be.options=e,be.options.reset=e,be.refresh=e,be.restore=n,be.setValue=e,be.show=e,t!==!0&&be.emit("destroyed"),be.off(),be}function p(t){var e=t?"remove":"add";ue.autoHideOnBlur&&h[e](document,"focusin",I),ue.autoHideOnClick&&h[e](document,"click",W)}function _(t){return 0===arguments.length?c(ue):(y(),n(t),be)}function v(){return _({})}function g(){De||(De=!0,w(),b(),be.emit("render"))}function w(){function t(t){var e=o({className:ue.styles.month,parent:pe});0===t&&(_e=o({type:"button",className:ue.styles.back,parent:e})),t===ue.monthsInCalendar-1&&(ve=o({type:"button",className:ue.styles.next,parent:e}));var n,r=o({className:ue.styles.monthLabel,parent:e}),a=o({type:"table",className:ue.styles.dayTable,parent:e}),i=o({type:"thead",className:ue.styles.dayHead,parent:a}),s=o({type:"tr",className:ue.styles.dayRow,parent:i}),u=o({type:"tbody",className:ue.styles.dayBody,parent:a});for(n=0;ke>n;n++)o({type:"th",className:ue.styles.dayHeadElem,parent:s,text:Ye[D(n)]});u.setAttribute(Me,t),xe.push({label:r,body:u})}if(ue.date){var e;for(xe=[],pe=o({className:ue.styles.date,parent:de}),e=0;e<ue.monthsInCalendar;e++)t(e);h.add(_e,"click",E),h.add(ve,"click",H),h.add(pe,"click",te)}}function b(){if(ue.time&&ue.timeInterval){var t=o({className:ue.styles.time,parent:de});ge=o({className:ue.styles.selectedTime,parent:t,text:ce.format(ue.timeFormat)}),h.add(ge,"click",Y),we=o({className:ue.styles.timeList,parent:t}),h.add(we,"click",ae);for(var e=d.moment("00:00:00","HH:mm:ss"),n=e.clone().add(1,"days");e.isBefore(n);)o({className:ue.styles.timeOption,parent:we,text:e.format(ue.timeFormat)}),e.add(ue.timeInterval,"seconds")}}function D(t,e){var n=e?-1:1,r=t+ue.weekStart*n;return(r>=ke||0>r)&&(r+=ke*-n),r}function M(){if(ue.time&&De){var t,e,n,r,a=we.children,i=a.length;for(r=0;i>r;r++)n=a[r],e=d.moment(s(n),ue.timeFormat),t=re(ce.clone(),e),n.style.display=J(t,!1,ue.timeValidator)?"block":"none"}}function Y(t){var e="boolean"==typeof t?t:"none"===we.style.display;e?k():x()}function k(){we&&(we.style.display="block")}function x(){we&&(we.style.display="none")}function T(){de.style.display="inline-block",be.emit("show")}function S(){de.style.display="none",be.emit("hide")}function O(){return g(),B(),Y(!ue.date),T(),be}function F(){return x(),i(S),be}function C(){x();var t=f.contains(de,ue.styles.positioned);return t&&i(S),be}function A(t){var e=t.target;if(e===be.associated)return!0;for(;e;){if(e===de)return!0;e=e.parentNode}}function I(t){A(t)||C()}function W(t){A(t)||C()}function E(){G("subtract")}function H(){G("add")}function G(t){var e,n="add"===t?-1:1,r=ue.monthsInCalendar+n*ne(ye);le[t]("months",r),e=Q(le.clone()),ce=e||ce,e&&(le=e.clone()),L()}function L(t){N(),j(),t!==!0&&V(),M()}function N(){function t(t,e){var n=le.clone().add(e,"months");s(t.label,n.format(ue.monthFormat)),q(t.body)}if(ue.date&&De){var e=le.year(),n=le.month(),r=le.date();if(r!==me||n!==he||e!==fe){var a=z();if(me=le.date(),he=le.month(),fe=le.year(),a)return void U();xe.forEach(t),R()}}}function U(){function t(t){var e,n=[];for(e=0;e<t.length;e++)n.push(t[e]);return n}function e(e){return t(e.children)}function n(t){return!f.contains(t,ue.styles.dayPrevMonth)&&!f.contains(t,ue.styles.dayNextMonth)}var r=le.date()-1;ee(!1),xe.forEach(function(a){var i;P(a.date,le)&&(i=t(a.body.children).map(e),i=Array.prototype.concat.apply([],i).filter(n),ee(i[r]))})}function z(){function t(t){return fe?P(t.date,le):!1}return xe.some(t)}function P(t,e){return t&&e&&t.year()===e.year()&&t.month()===e.month()}function j(){ue.time&&De&&s(ge,ce.format(ue.timeFormat))}function V(){return be.emit("data",oe()),be.emit("year",ce.year()),be.emit("month",ce.month()),be.emit("day",ce.day()),be.emit("time",ce.format(ue.timeFormat)),be}function B(){return fe=!1,he=!1,me=!1,L(!0),be}function Z(t){var e=u(t,ue.inputFormat);if(null!==e)return ce=Q(e)||ce,le=ce.clone(),L(!0),be}function q(t,e){for(;t&&t.firstChild;)t.removeChild(t.firstChild);e===!0&&t.parentNode.removeChild(t)}function R(){var t;for(t=0;t<ue.monthsInCalendar;t++)$(t)}function $(t){function e(t){var e,r,a;for(e=0;e<t.length;e++)f.children.length===ke&&(f=o({type:"tr",className:ue.styles.dayRow,parent:i.body})),r=t.base.clone().add(e,"days"),a=o({type:"td",parent:f,text:r.format(ue.dayFormat),className:n(r,t.cell.join(" ").split(" ")).join(" ")}),t.selectable&&r.date()===c&&ee(a)}function n(t,e){return J(t,!0,ue.dateValidator)||e.push(y),e}function r(t,e){return t&&e.push(ue.styles.dayConcealed),e}var a,i=xe[t],s=le.clone().add(t,"months"),u=s.daysInMonth(),c=s.month()!==ce.month()?-1:ce.date(),l=s.clone().date(1),d=D(l.day(),!0),f=o({type:"tr",className:ue.styles.dayRow,parent:i.body}),h=r(0!==t,[ue.styles.dayBodyElem,ue.styles.dayPrevMonth]),m=r(t!==ue.monthsInCalendar-1,[ue.styles.dayBodyElem,ue.styles.dayNextMonth]),y=ue.styles.dayDisabled;e({base:l.clone().subtract(d,"days"),length:d,cell:h}),e({base:l.clone(),length:u,cell:[ue.styles.dayBodyElem],selectable:!0}),a=l.clone().add(u,"days"),e({base:a,length:ke-f.children.length,cell:m}),_e.disabled=!J(l,!0),ve.disabled=!J(a,!0),i.date=s.clone()}function J(t,e,n){var r=ue.min?e?ue.min.clone().startOf("day"):ue.min:!1,a=ue.max?e?ue.max.clone().endOf("day"):ue.max:!1;if(r&&t.isBefore(r))return!1;if(a&&t.isAfter(a))return!1;var i=(n||Function.prototype).call(be,t.toDate());return i!==!1}function Q(t){if(ue.min&&t.isBefore(ue.min))return Q(ue.min.clone());if(ue.max&&t.isAfter(ue.max))return Q(ue.max.clone());var e=t.clone().subtract(1,"days");return K(e,t,"add")?X(e):(e=t.clone(),K(e,t,"subtract")?X(e):void 0)}function X(t){var e,n=t.clone().subtract(ue.timeInterval,"seconds"),r=Math.ceil(Te/ue.timeInterval);for(e=0;r>e;e++)if(n.add(ue.timeInterval,"seconds"),n.date()>t.date()&&n.subtract(1,"days"),ue.timeValidator.call(be,n.toDate())!==!1)return n}function K(t,e,n){for(var r=!1;r===!1&&(t[n](1,"days"),t.month()===e.month());)r=ue.dateValidator.call(be,t.toDate());return r!==!1}function te(t){var e=t.target;if(!f.contains(e,ue.styles.dayDisabled)&&f.contains(e,ue.styles.dayBodyElem)){var n=parseInt(s(e),10),r=f.contains(e,ue.styles.dayPrevMonth),a=f.contains(e,ue.styles.dayNextMonth),i=ne(e)-ne(ye);ce.add(i,"months"),(r||a)&&ce.add(r?-1:1,"months"),ee(e),ce.date(n),re(ce,Q(ce)||ce),le=ce.clone(),ue.autoClose&&C(),L()}}function ee(t){ye&&f.remove(ye,ue.styles.selectedDay),t&&f.add(t,ue.styles.selectedDay),ye=t}function ne(t){for(var e;t&&t.getAttribute;){if(e=t.getAttribute(Me),"string"==typeof e)return parseInt(e,10);t=t.parentNode}return 0}function re(t,e){return t.hour(e.hour()).minute(e.minute()).second(e.second()),t}function ae(t){var e=t.target;if(f.contains(e,ue.styles.timeOption)){var n=d.moment(s(e),ue.timeFormat);re(ce,n),le=ce.clone(),V(),j(),!ue.date&&ue.autoClose?C():x()}}function ie(){return ce.toDate()}function oe(t){return ce.format(t||ue.inputFormat)}function se(){return ce.clone()}var ue,ce,le,de,fe,he,me,ye,pe,_e,ve,ge,we,be=a({}),De=!1,Me="data-rome-offset",Ye=d.moment.weekdaysMin(),ke=Ye.length,xe=[],Te=86400;return y(!0),i(function(){n()}),be}var r,a=t("contra.emitter"),i=t("raf"),o=t("./dom"),s=t("./text"),u=t("./parse"),c=t("./clone"),l=t("./defaults"),d=t("./momentum"),f=t("./classes"),h=t("./events"),m=t("./noop");e.exports=n},{"./classes":16,"./clone":17,"./defaults":19,"./dom":20,"./events":21,"./momentum":26,"./noop":27,"./parse":28,"./text":40,"contra.emitter":2,raf:12}],16:[function(t,e){"use strict";function n(t){return t.className.replace(s,"").split(u)}function r(t,e){t.className=e.join(" ")}function a(t,e){var n=i(t,e);n.push(e),r(t,n)}function i(t,e){var a=n(t),i=a.indexOf(e);return-1!==i&&(a.splice(i,1),r(t,a)),a}function o(t,e){return-1!==n(t).indexOf(e)}var s=/^\s+|\s+$/g,u=/\s+/;e.exports={add:a,remove:i,contains:o}},{}],17:[function(t,e){"use strict";function n(t){var e,a={};for(var i in t)e=t[i],a[i]=e?r.isMoment(e)?e.clone():e._isStylesConfiguration?n(e):e:e;return a}var r=t("./momentum");e.exports=n},{"./momentum":26}],18:[function(t,e){"use strict";function n(t,e){var n,s=r.find(t);return s?s:(n=o(t)?a(t,e):i(t,e),n.associated=t,r.assign(t,n),n)}var r=t("./index"),a=t("./input"),i=t("./inline"),o=t("./isInput");e.exports=n},{"./index":22,"./inline":23,"./input":24,"./isInput":25}],19:[function(t,e){"use strict";function n(t,e){var n,i,o=t||{};if(o.autoHideOnClick===i&&(o.autoHideOnClick=!0),o.autoHideOnBlur===i&&(o.autoHideOnBlur=!0),o.autoClose===i&&(o.autoClose=!0),o.appendTo===i&&(o.appendTo=document.body),"parent"===o.appendTo){if(!a(e.associated))throw new Error("Inline calendars must be appended to a parent node explicitly.");o.appendTo=e.associated.parentNode}if(o.invalidate===i&&(o.invalidate=!0),o.required===i&&(o.required=!1),o.date===i&&(o.date=!0),o.time===i&&(o.time=!0),o.date===!1&&o.time===!1)throw new Error("At least one of `date` or `time` must be `true`.");if(o.inputFormat===i&&(o.inputFormat=o.date&&o.time?"YYYY-MM-DD HH:mm":o.date?"YYYY-MM-DD":"HH:mm"),o.initialValue=o.initialValue===i?null:r(o.initialValue,o.inputFormat),o.min=o.min===i?null:r(o.min,o.inputFormat),o.max=o.max===i?null:r(o.max,o.inputFormat),o.timeInterval===i&&(o.timeInterval=1800),o.min&&o.max)if(o.max.isBefore(o.min)&&(n=o.max,o.max=o.min,o.min=n),o.date===!0){if(o.max.clone().subtract(1,"days").isBefore(o.min))throw new Error("`max` must be at least one day after `min`")}else if(1e3*o.timeInterval-o.min%(1e3*o.timeInterval)>o.max-o.min)throw new Error("`min` to `max` range must allow for at least one time option that matches `timeInterval`");o.dateValidator===i&&(o.dateValidator=Function.prototype),o.timeValidator===i&&(o.timeValidator=Function.prototype),o.timeFormat===i&&(o.timeFormat="HH:mm"),o.weekStart===i&&(o.weekStart=0),o.monthsInCalendar===i&&(o.monthsInCalendar=1),o.monthFormat===i&&(o.monthFormat="MMMM YYYY"),o.dayFormat===i&&(o.dayFormat="DD"),o.styles===i&&(o.styles={}),o.styles._isStylesConfiguration=!0;var s=o.styles;return s.back===i&&(s.back="rd-back"),s.container===i&&(s.container="rd-container"),s.positioned===i&&(s.positioned="rd-container-attachment"),s.date===i&&(s.date="rd-date"),s.dayBody===i&&(s.dayBody="rd-days-body"),s.dayBodyElem===i&&(s.dayBodyElem="rd-day-body"),s.dayPrevMonth===i&&(s.dayPrevMonth="rd-day-prev-month"),s.dayNextMonth===i&&(s.dayNextMonth="rd-day-next-month"),s.dayDisabled===i&&(s.dayDisabled="rd-day-disabled"),s.dayConcealed===i&&(s.dayConcealed="rd-day-concealed"),s.dayHead===i&&(s.dayHead="rd-days-head"),s.dayHeadElem===i&&(s.dayHeadElem="rd-day-head"),s.dayRow===i&&(s.dayRow="rd-days-row"),s.dayTable===i&&(s.dayTable="rd-days"),s.month===i&&(s.month="rd-month"),s.monthLabel===i&&(s.monthLabel="rd-month-label"),s.next===i&&(s.next="rd-next"),s.selectedDay===i&&(s.selectedDay="rd-day-selected"),s.selectedTime===i&&(s.selectedTime="rd-time-selected"),s.time===i&&(s.time="rd-time"),s.timeList===i&&(s.timeList="rd-time-list"),s.timeOption===i&&(s.timeOption="rd-time-option"),o}var r=t("./parse"),a=t("./isInput");e.exports=n},{"./isInput":25,"./parse":28}],20:[function(t,e){"use strict";function n(t){var e=t||{};e.type||(e.type="div");var n=document.createElement(e.type);return e.className&&(n.className=e.className),e.text&&(n.innerText=n.textContent=e.text),e.parent&&e.parent.appendChild(n),n}e.exports=n},{}],21:[function(t,e){"use strict";function n(t,e,n){return t.addEventListener(e,n)}function r(t,e,n){return t.attachEvent("on"+e,function(e){var r=e||window.event;r.target=r.target||r.srcElement,r.preventDefault=r.preventDefault||function(){r.returnValue=!1},r.stopPropagation=r.stopPropagation||function(){r.cancelBubble=!0},n.call(t,r)})}function a(t,e,n){return t.removeEventListener(e,n)}function i(t,e,n){return t.detachEvent("on"+e,n)}var o=n,s=a;window.addEventListener||(o=r),window.removeEventListener||(s=i),e.exports={add:o,remove:s}},{}],22:[function(t,e){"use strict";function n(t){if("number"!=typeof t&&t&&t.getAttribute)return n(t.getAttribute(i));var e=o[t];return e!==a?e:null}function r(t,e){t.setAttribute(i,e.id=o.push(e)-1)}var a,i="data-rome-id",o=[];e.exports={find:n,assign:r}},{}],23:[function(t,e){"use strict";function n(t,e){function n(){r(o.show)}var i=e||{};i.appendTo=t;var o=a(i).on("ready",n);return o}var r=t("raf"),a=t("./calendar");e.exports=n},{"./calendar":15,raf:12}],24:[function(t,e){"use strict";function n(t,e){function n(e){D=i(e),u.add(k.container,D.styles.positioned),c.add(k.container,"mousedown",m),c.add(k.container,"click",h),k.getDate=b(k.getDate),k.getDateString=b(k.getDateString),k.getMoment=b(k.getMoment),D.initialValue&&(t.value=D.initialValue.format(D.inputFormat)),k.on("data",g),k.on("show",T),f(),x()}function l(){f(!0),a(d)}function d(){k.once("ready",n),k.once("destroyed",l)}function f(e){var n=e?"remove":"add";c[n](t,"click",p),c[n](t,"touchend",p),c[n](t,"focusin",p),c[n](t,"change",x),c[n](t,"keypress",x),c[n](t,"keydown",x),c[n](t,"input",x),D.invalidate&&c[n](t,"blur",y),c[n](window,"resize",T)}function h(){Y=!0,t.focus(),Y=!1}function m(){function t(){M=!1}M=!0,a(t)}function y(){M||w()||k.emitValues()}function p(){Y||k.show()}function _(){var e=t.getBoundingClientRect(),n=document.body.scrollTop||document.documentElement.scrollTop;k.container.style.top=e.top+n+t.offsetHeight+"px",k.container.style.left=e.left+"px"}function v(){var e=t.value.trim();if(!w()){var n=s.moment(e,D.inputFormat);k.setValue(n)}}function g(e){t.value=e}function w(){return D.required===!1&&""===t.value.trim()}function b(t){return function(){return w()?null:t.apply(this,arguments)}}var D,M,Y,k=o(e),x=r(v,50),T=r(_,30);return d(),k}var r=t("lodash.throttle"),a=t("raf"),i=t("./clone"),o=t("./calendar"),s=t("./momentum"),u=t("./classes"),c=t("./events");e.exports=n},{"./calendar":15,"./classes":16,"./clone":17,"./events":21,"./momentum":26,"lodash.throttle":4,raf:12}],25:[function(t,e){"use strict";function n(t){return t&&t.nodeName&&"input"===t.nodeName.toLowerCase()}e.exports=n},{}],26:[function(t,e){"use strict";function n(t){return t&&Object.prototype.hasOwnProperty.call(t,"_isAMomentObject")}var r={moment:null,isMoment:n};e.exports=r},{}],27:[function(t,e){"use strict";function n(){}e.exports=n},{}],28:[function(t,e){"use strict";function n(t,e){return"string"==typeof t?a.moment(t,e):"[object Date]"===Object.prototype.toString.call(t)?a.moment(t):a.isMoment(t)?t.clone():void 0}function r(t,e){var r=n(t,"string"==typeof e?e:null);return r&&r.isValid()?r:null}var a=t("./momentum");e.exports=r},{"./momentum":26}],29:[function(){Array.prototype.every||(Array.prototype.every=function(t,e){var n,r;if(null==this)throw new TypeError("this is null or not defined");var a=Object(this),i=a.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),r=0;i>r;){if(r in a){var o=t.call(n,a[r],r,a);if(!o)return!1}r++}return!0})},{}],30:[function(){Array.prototype.filter||(Array.prototype.filter=function(t,e){var n=[];return this.forEach(function(r,a,i){t.call(e,r,a,i)&&n.push(r)},e),n})},{}],31:[function(){Array.prototype.forEach||(Array.prototype.forEach=function(t,e){if(void 0===this||null===this||"function"!=typeof t)throw new TypeError;for(var n=this,r=n.length,a=0;r>a;a++)a in n&&t.call(e,n[a],a,n)})},{}],32:[function(){Array.prototype.indexOf||(Array.prototype.indexOf=function(t,e){if(void 0===this||null===this)throw new TypeError;var n=this.length;for(e=+e||0,1/0===Math.abs(e)?e=0:0>e&&(e+=n,0>e&&(e=0));n>e;e++)if(this[e]===t)return e;return-1})},{}],33:[function(){Array.isArray||(Array.isArray=function(t){return""+t!==t&&"[object Array]"===Object.prototype.toString.call(t)})},{}],34:[function(){Array.prototype.map||(Array.prototype.map=function(t,e){var n,r,a;if(null==this)throw new TypeError("this is null or not defined");var i=Object(this),o=i.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),r=new Array(o),a=0;o>a;)a in i&&(r[a]=t.call(n,i[a],a,i)),a++;return r})},{}],35:[function(){Array.prototype.some||(Array.prototype.some=function(t,e){var n,r;if(null==this)throw new TypeError("this is null or not defined");var a=Object(this),i=a.length>>>0;if("function"!=typeof t)throw new TypeError(t+" is not a function");for(arguments.length>1&&(n=e),r=0;i>r;){if(r in a){var o=t.call(n,a[r],r,a);if(o)return!0}r++}return!1})},{}],36:[function(){Function.prototype.bind||(Function.prototype.bind=function(t){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var e=Array.prototype.slice.call(arguments,1),n=this,r=function(){},a=function(){var a=this instanceof r&&t?this:t,i=e.concat(Array.prototype.slice.call(arguments));return n.apply(a,i)};return r.prototype=this.prototype,a.prototype=new r,a})},{}],37:[function(){String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")})},{}],38:[function(t,e){"use strict";t("./polyfills/function.bind"),t("./polyfills/array.foreach"),t("./polyfills/array.map"),t("./polyfills/array.filter"),t("./polyfills/array.isarray"),t("./polyfills/array.indexof"),t("./polyfills/array.every"),t("./polyfills/array.some"),t("./polyfills/string.trim");var n=t("./core"),r=t("./index"),a=t("./use");n.use=a.bind(n),n.find=r.find,n.val=t("./validators"),e.exports=n},{"./core":18,"./index":22,"./polyfills/array.every":29,"./polyfills/array.filter":30,"./polyfills/array.foreach":31,"./polyfills/array.indexof":32,"./polyfills/array.isarray":33,"./polyfills/array.map":34,"./polyfills/array.some":35,"./polyfills/function.bind":36,"./polyfills/string.trim":37,"./use":41,"./validators":42}],39:[function(t,e){"use strict";var n=t("moment"),r=t("./rome");r.use(n),e.exports=r},{"./rome":38,moment:11}],40:[function(t,e){"use strict";function n(t,e){return 2===arguments.length&&(t.innerText=t.textContent=e),t.innerText||t.textContent}e.exports=n},{}],41:[function(t,e){"use strict";function n(t){this.moment=r.moment=t}var r=t("./momentum");e.exports=n},{"./momentum":26}],42:[function(t,e){"use strict";function n(t){return function(e){var n=i(e);return function(r){var s=a.find(e),u=i(r),c=n||s&&s.getMoment();return c?(s&&o.add(this,s),t(u,c)):!0}}}function r(t,e){return function(n,r){function s(t){var e,n,r=a.find(t);return r?e=n=r.getMoment():Array.isArray(t)?(e=t[0],n=t[1]):e=n=t,r&&o.add(r,this),{start:i(e).startOf("day").toDate(),end:i(n).endOf("day").toDate()}}var u,c=arguments.length;return Array.isArray(n)?u=n:1===c?u=[n]:2===c&&(u=[[n,r]]),function(n){return u.map(s.bind(this))[t](e.bind(this,n))}}}var a=t("./index"),i=t("./parse"),o=t("./association"),s=n(function(t,e){return t>=e}),u=n(function(t,e){return t>e}),c=n(function(t,e){return e>=t}),l=n(function(t,e){return e>t}),d=r("every",function(t,e){return e.start>t||e.end<t}),f=r("some",function(t,e){return e.start<=t&&e.end>=t});e.exports={afterEq:s,after:u,beforeEq:c,before:l,except:d,only:f}},{"./association":14,"./index":22,"./parse":28}]},{},[39])(39)});
\ No newline at end of file
......@@ -149,5 +149,10 @@
"txtContentWarning":"Waring",
"txtMediaAutoPlayWarning":"Media will be played automatically.",
"txtPreventLink": "プレビューにはこの機能が利用できません",
"msgContentNotExist": "コンテンツが存在しません。"
"msgContentNotExist": "コンテンツが存在しません。",
"txtShare": "共有",
"txtDashMark": "-",
"txtUrlValidDate": "URL有効期間",
"txtMaxDownloadCount": "最大DL回数",
"msgShareUrlPassword": "パスワードを設定する場合、以下に入力して下さい。"
}
......@@ -64,7 +64,7 @@
"dspBkCancel":"バックアップせずにログアウト",
"txtSearchResult":"検索結果",
"dspHome":"ホーム",
"txtLoginUser":"(v1.4.1.0)ログイン中:",
"txtLoginUser":"(v1.4.2.0)ログイン中:",
"txtAll":"すべて",
"txtMkgSize":"太さ",
"txtMkgS":"小",
......@@ -149,5 +149,10 @@
"txtContentWarning":"警告",
"txtMediaAutoPlayWarning":"メディアは自動再生されます。",
"txtPreventLink": "プレビューにはこの機能が利用できません。",
"msgContentNotExist": "コンテンツが存在しません。"
"msgContentNotExist": "コンテンツが存在しません。",
"txtShare": "共有",
"txtDashMark": "~",
"txtUrlValidDate": "URL有効期間",
"txtMaxDownloadCount": "最大DL回数",
"msgShareUrlPassword": "パスワードを設定する場合、以下に入力して下さい。"
}
......@@ -149,5 +149,10 @@
"txtContentWarning":"경고",
"txtMediaAutoPlayWarning":"음악/동영상은 자동으로 재생됩니다.",
"txtPreventLink": "미리 보기에서 사용하실 수 없는 기능입니다.",
"msgContentNotExist": "コンテンツが存在しません。"
"msgContentNotExist": "コンテンツが存在しません。",
"txtShare": "共有",
"txtDashMark": "~",
"txtUrlValidDate": "URL유효기간",
"txtMaxDownloadCount": "최대DL횟수",
"msgShareUrlPassword": "암호를 설정할경우 다음의 입력란에 입력하십시오."
}
......@@ -14,6 +14,7 @@
<link rel="stylesheet" type="text/css" href="common/css/jquery.toastmessage.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/default.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/screenLock.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/screen.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/common.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/theme/common.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/header.css?#UPDATEID#" />
......@@ -30,21 +31,8 @@
<link rel="stylesheet" type="text/css" href="css/theme/accordion.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/limit_access.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/theme/limit_access.css?#UPDATEID#" />
<script type="text/javascript" src="./common/js/jquery-1.8.1.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery-ui-1.8.23.custom.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.toastmessage.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/i18n.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/avweb.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/common.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/Limit_Access_Content.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/contentsearch.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/header.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/gotop.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/tab.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/screenLock.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./js/detail.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/scrolltopcontrol.js?#UPDATEID#"></script>
<link rel="stylesheet" type="text/css" href="css/share.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/rome.css?#UPDATEID#" />
</head>
<body>
......@@ -96,26 +84,7 @@
</div>
</header>
<section class="sectionbackup_logout" id="dlgConfirmBackup1">
<h1><label class="lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
<p class="message"><label lang="txtLogoutBkMsg" class="lang"><!--ログアウトする前にバックアップしますか?--></label></p>
<p class="message-options">
<label class="option_backup">
<label lang="txtBkSelectData" class="lang"><!--バックアップするデータを選択してください。--></label><br />
<input type="checkbox" id="chkBkAllMarking" class="chkbx" checked="checked" /><label for="chkBkAllMarking" lang="txtBkMarking" class="lang"><!--マーキング--></label>
<input type="checkbox" id="chkBkAllMemo" class="chkbx" checked="checked" /><label for="chkBkAllMemo" lang="txtBkMemo" class="lang"><!--メモ--></label>
<input type="checkbox" id="chkBkAllShiori" class="chkbx" checked="checked" /><label for="chkBkAllShiori" lang="txtBkShiori" class="lang"><!--しおり--></label>
</label>
</p>
<p class="notice">
<input type="checkbox" id="chkRememberBackup" /><label for="chkRememberBackup" class="lang" lang="txtLogoutOptBkCfm"><!--今回の行動を記憶し、次回から確認せずに、同じことをする。--></label>
</p>
<p class="backupbtn">
<a class="cancel lang" href="#" lang="dspBkCancel" id="dlgConfirmBackup-withoutbackup"><!--バックアップしないでログアウト--></a>
<a class="ok lang" href="#" id="dlgConfirmBackup-backup" lang="dspBkOK"><!--バックアップしてログアウト--></a>
</p>
</section>
<div id="inc_backup"></div>
<div class="wrapper">
<div id="main">
......@@ -168,22 +137,7 @@
</div>
</div>
<article id="contentDetail" style="display:none;">
<section id='sectionContentDetail' class='sectionContentDetail'>
<a class="closebtn" href="#" id="contentDetailClose"> </a>
<div id="book_data">
<p class="book_img"><img src="" id="imgContentThumbnail" alt="" height="25px" width="25px" /></p>
<ul>
<li class="title" id="txtContentTitle">Abook資料</li>
<li class="date"><label id="txtPubDt2" lang="dspPubDt2" class="lang">発行日:</label><label id="txtPubDt2_Dsp">____/__/__ __:__</label></li>
<li class="explain" id="txtContentDetail">スマートデバイス向け<br />統合ソリューション</li>
</ul>
<p class="read_btn"><a class="read lang" id="contentdetail_dspRead" lang="txtRead">読む</a></p>
</div>
<div id="book_list"></div>
</section>
</article>
<div id="inc_detail" ></div>
<footer>
<div class="border">
......@@ -197,5 +151,19 @@
this frame prevents back forward cache
</iframe>
<script type="text/javascript" src="./common/js/jquery-1.8.1.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery-ui-1.8.23.custom.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.toastmessage.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/i18n.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/avweb.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/common.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/Limit_Access_Content.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/header.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/contentsearch.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/gotop.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/tab.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/screenLock.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/scrolltopcontrol.js?#UPDATEID#"></script>
</body>
</html>
\ No newline at end of file
......@@ -221,11 +221,18 @@ a:hover.btn_bott{
left: 40px;
top: -4px;
}
/*
.cnt_section_list .text .info .pic li .read {
position: absolute;
right: 20px;
top: 50px;
}
*/
.cnt_section_list .text .info .pic li .iconList {
position: absolute;
right: 20px;
top: 50px;
}
section
{
}
......
......@@ -202,11 +202,18 @@
left: 40px;
top: -4px;
}
/*
.cnt_section_list .text .info .pic li .read {
position: absolute;
right: 20px;
top: 50px;
}
*/
.cnt_section_list .text .info .pic li .iconList {
position: absolute;
right: 20px;
top: 50px;
}
#main-searchresult
......
......@@ -159,12 +159,20 @@ a:hover.btn_bott{
top: 7px;
left: 50px;
}
/*
#list .wrapper #main .hoge-R section .cnt_section_list .text .info .pic li .read {
position: absolute;
right: -145px;
display: block;
top: 15px;
}
*/
#list .wrapper #main .hoge-R section .cnt_section_list .text .info .pic li .iconList {
position: absolute;
right: -145px;
display: block;
top: 15px;
}
#list .wrapper #main article section .cnt_section_list .text .name .listIcon {
display: inline;
vertical-align: middle;
......
/* CSS Document */
@charset "utf-8";
ul.contentShare_iconList {
margin: 0;
padding: 0;
list-style-type: none;
float: right; /* liE */
}
ul.contentShare_iconList li {
float: left;
width: 5em;
margin-right: 5px;
padding: 2px;
text-align: center;
}
......@@ -13,6 +13,7 @@
<link rel="stylesheet" type="text/css" href="common/css/jquery.toastmessage.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/default.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/screenLock.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/screen.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/common.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/theme/common.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/header.css?#UPDATEID#" />
......@@ -33,20 +34,8 @@
<link rel="stylesheet" type="text/css" href="css/theme/list_shirori_detail.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/limit_access.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/theme/limit_access.css?#UPDATEID#" />
<script type="text/javascript" src="./common/js/jquery-1.8.1.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery-ui-1.8.23.custom.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.toastmessage.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/i18n.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/avweb.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/common.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/Limit_Access_Content.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/history.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/header.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/gotop.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/tab.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/screenLock.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./js/detail.js?#UPDATEID#" ></script>
<link rel="stylesheet" type="text/css" href="css/share.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/rome.css?#UPDATEID#" />
</head>
<body>
......@@ -98,26 +87,7 @@
</div>
</header>
<section class="sectionbackup_logout" id="dlgConfirmBackup1">
<h1><label class="lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
<p class="message"><label lang="txtLogoutBkMsg" class="lang"><!--ログアウトする前にバックアップしますか?--></label></p>
<p class="message-options">
<label class="option_backup">
<label lang="txtBkSelectData" class="lang"><!--バックアップするデータを選択してください。--></label><br />
<input type="checkbox" id="chkBkAllMarking" class="chkbx" checked="checked" /><label for="chkBkAllMarking" lang="txtBkMarking" class="lang"><!--マーキング--></label>
<input type="checkbox" id="chkBkAllMemo" class="chkbx" checked="checked" /><label for="chkBkAllMemo" lang="txtBkMemo" class="lang"><!--メモ--></label>
<input type="checkbox" id="chkBkAllShiori" class="chkbx" checked="checked" /><label for="chkBkAllShiori" lang="txtBkShiori" class="lang"><!--しおり--></label>
</label>
</p>
<p class="notice">
<input type="checkbox" id="chkRememberBackup" /><label for="chkRememberBackup" class="lang" lang="txtLogoutOptBkCfm"><!--今回の行動を記憶し、次回から確認せずに、同じことをする。--></label>
</p>
<p class="backupbtn">
<a class="cancel lang" href="#" lang="dspBkCancel" id="dlgConfirmBackup-withoutbackup"><!--バックアップしないでログアウト--></a>
<a class="ok lang" href="#" id="dlgConfirmBackup-backup" lang="dspBkOK"><!--バックアップしてログアウト--></a>
</p>
</section>
<div id="inc_backup"></div>
<div class="wrapper">
<div id="main">
......@@ -158,22 +128,7 @@
</div>
</div>
<article id="contentDetail" style="display:none;">
<section id='sectionContentDetail' class='sectionContentDetail'>
<a class="closebtn" href="#" id="contentDetailClose"> </a>
<div id="book_data">
<p class="book_img"><img src="" id="imgContentThumbnail" alt="" height="25px" width="25px" /></p>
<ul>
<li class="title" id="txtContentTitle">Abook資料</li>
<li class="date"><label id="txtPubDt2" lang="dspPubDt2" class="lang">発行日:</label><label id="txtPubDt2_Dsp">____/__/__ __:__</label></li>
<li class="explain" id="txtContentDetail">スマートデバイス向け<br />統合ソリューション</li>
</ul>
<p class="read_btn"><a class="read lang" href="#" id="contentdetail_dspRead" lang="txtRead">読む</a></p>
</div>
<div id="book_list"></div>
</section>
</article>
<div id="inc_detail" ></div>
<footer>
<div class="border">
......@@ -187,5 +142,18 @@
this frame prevents back forward cache
</iframe>
<script type="text/javascript" src="./common/js/jquery-1.8.1.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery-ui-1.8.23.custom.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.toastmessage.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/i18n.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/avweb.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/common.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/Limit_Access_Content.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/header.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/history.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/gotop.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/tab.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/screenLock.js?#UPDATEID#" ></script>
</body>
</html>
\ No newline at end of file
......@@ -37,24 +37,8 @@
<link rel="stylesheet" type="text/css" href="css/theme/accordion.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/limit_access.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/theme/limit_access.css?#UPDATEID#" />
<script type="text/javascript" src="./common/js/jquery-1.8.1.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery-ui-1.8.23.custom.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.toastmessage.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/avweb.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/i18n.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/common.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/uuid.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/Limit_Access_Content.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/header.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/home.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/scrolltopcontrol.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/tab.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.cookie.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/jquery.treeview.edit.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/jquery.treeview.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/screenLock.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./js/detail.js?#UPDATEID#" ></script>
<link rel="stylesheet" type="text/css" href="css/share.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/rome.css?#UPDATEID#" />
</head>
......@@ -107,6 +91,9 @@
</div>
</div>
</header>
<div id="inc_backup"></div>
<div class="wrapper">
<div id="main" class="hoge">
<div class="tabUnit" style="display:none;" >
......@@ -182,43 +169,7 @@
</div>
</div>
<section class="sectionbackup_logout" id="dlgConfirmBackup1">
<h1><label class="lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
<p class="message"><label lang="txtLogoutBkMsg" class="lang"><!--ログアウトする前にバックアップしますか?--></label></p>
<p class="message-options">
<label class="option_backup">
<label lang="txtBkSelectData" class="lang"><!--バックアップするデータを選択してください。--></label><br />
<input type="checkbox" id="chkBkAllMarking" class="chkbx" checked="checked" /><label for="chkBkAllMarking" lang="txtBkMarking" class="lang"><!--マーキング--></label>
<input type="checkbox" id="chkBkAllMemo" class="chkbx" checked="checked" /><label for="chkBkAllMemo" lang="txtBkMemo" class="lang"><!--メモ--></label>
<input type="checkbox" id="chkBkAllShiori" class="chkbx" checked="checked" /><label for="chkBkAllShiori" lang="txtBkShiori" class="lang"><!--しおり--></label>
</label>
</p>
<p class="notice">
<input type="checkbox" id="chkRememberBackup" /><label for="chkRememberBackup" class="lang" lang="txtLogoutOptBkCfm"><!--今回の行動を記憶し、次回から確認せずに、同じことをする。--></label>
</p>
<p class="backupbtn">
<a class="cancel lang" href="#" lang="dspBkCancel" id="dlgConfirmBackup-withoutbackup"><!--バックアップしないでログアウト--></a>
<a class="ok lang" href="#" id="dlgConfirmBackup-backup" lang="dspBkOK"><!--バックアップしてログアウト--></a>
</p>
</section>
<article id="contentDetail" style="display:none;">
<section id='sectionContentDetail' class='sectionContentDetail'>
<a class="closebtn" href="#" id="contentDetailClose"> </a>
<div id="book_data">
<p class="book_img"><img src="" id="imgContentThumbnail" alt="" height="25px" width="25px" /></p>
<ul>
<li class="title" id="txtContentTitle">Abook資料</li>
<li class="date"><label id="txtPubDt2" lang="dspPubDt2" class="lang">発行日:</label><label id="txtPubDt2_Dsp">____/__/__ __:__</label></li>
<li class="explain" id="txtContentDetail">スマートデバイス向け<br />統合ソリューション</li>
</ul>
<p class="read_btn"><a class="read lang" href="#" id="contentdetail_dspRead" lang="txtRead">読む</a></p>
</div>
<div id="book_list"></div>
</section>
</article>
<div id="inc_detail" ></div>
<!-- Hカスタム -->
<div id="dlgAddMemberGroup" title="コード入力" style="display: none;" >
......@@ -238,5 +189,23 @@
<iframe style="height:0px;width:0px;visibility:hidden;display:none;" src="about:blank">
this frame prevents back forward cache
</iframe>
<script type="text/javascript" src="./common/js/jquery-1.8.1.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery-ui-1.8.23.custom.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.toastmessage.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/avweb.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/i18n.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/common.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/uuid.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/Limit_Access_Content.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/header.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/home.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/scrolltopcontrol.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/tab.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.cookie.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/jquery.treeview.edit.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/jquery.treeview.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/screenLock.js?#UPDATEID#" ></script>
</body>
</html>
\ No newline at end of file
<section class="sectionbackup_logout" id="dlgConfirmBackup1" style="display:none;">
<h1><label class="lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
<p class="message"><label lang="txtLogoutBkMsg" class="lang"><!--ログアウトする前にバックアップしますか?--></label></p>
<p class="message-options">
<label class="option_backup">
<label lang="txtBkSelectData" class="lang"><!--バックアップするデータを選択してください。--></label><br />
<input type="checkbox" id="chkBkAllMarking" class="chkbx" checked="checked" /><label for="chkBkAllMarking" lang="txtBkMarking" class="lang"><!--マーキング--></label>
<input type="checkbox" id="chkBkAllMemo" class="chkbx" checked="checked" /><label for="chkBkAllMemo" lang="txtBkMemo" class="lang"><!--メモ--></label>
<input type="checkbox" id="chkBkAllShiori" class="chkbx" checked="checked" /><label for="chkBkAllShiori" lang="txtBkShiori" class="lang"><!--しおり--></label>
</label>
</p>
<p class="notice">
<input type="checkbox" id="chkRememberBackup" /><label for="chkRememberBackup" class="lang" lang="txtLogoutOptBkCfm"><!--今回の行動を記憶し、次回から確認せずに、同じことをする。--></label>
</p>
<p class="backupbtn">
<a class="cancel lang" href="#" lang="dspBkCancel" id="dlgConfirmBackup-withoutbackup"><!--バックアップしないでログアウト--></a>
<a class="ok lang" href="#" id="dlgConfirmBackup-backup" lang="dspBkOK"><!--バックアップしてログアウト--></a>
</p>
</section>
<article id="contentDetail" style="display:none;">
<section id='sectionContentDetail' class='sectionContentDetail'>
<a class="closebtn" href="#" id="contentDetailClose"> </a>
<div id="book_data">
<p class="book_img"><img src="" id="imgContentThumbnail" alt="" height="25px" width="25px" /></p>
<ul>
<li class="title" id="txtContentTitle">Abook資料</li>
<li class="date"><label id="txtPubDt2" lang="dspPubDt2" class="lang">発行日:</label><label id="txtPubDt2_Dsp">____/__/__ __:__</label></li>
<li class="explain" id="txtContentDetail">スマートデバイス向け<br />統合ソリューション</li>
</ul>
<p class="read_btn"><a class="read lang" href="#" id="contentdetail_dspRead" lang="txtRead">読む</a></p>
<p class="read_btn"><a class="read lang" href="#" id="contentdetail_dspShare" lang="txtShare" style="display:none;" >共有</a></p>
</div>
<div id="book_list"></div>
</section>
</article>
<div id="dlgContentShare" title="" style="display: none;" >
<div class="" id="dlgContentShare_error" style="color: #ff0000; background-color: transparent; display: none;"></div>
<div id="dlgContentShare_input" >
<div id="dlgContentShare_deliveryTerm">
<label class="lang" lang="txtUrlValidDate" ><!--URL有効期間--></label></br>
<input id="dlgContentShare_validStartDate" name="dlgContentShare_validStartDate" class="input" style="width:100px; ime-mode:disabled; vertical-align:middle;" value='' />
<label class="lang" lang="txtDashMark" ><!-- --></label>
<input id="dlgContentShare_validEndDate" name="dlgContentShare_validEndDate" class="input" style="width:100px; ime-mode:disabled; vertical-align:middle;" value='' />
</div>
</br>
<div>
<label class="lang" lang="txtMaxDownloadCount" ><!--最大DL回数--></label></br>
<input type="text" id="dlgContentShare_maxDlCount" name="dlgContentShare_maxDlCount" class="" style="width:50px;" value=''/>
</div>
</br>
<div>
<label class="lang" lang="msgShareUrlPassword" ><!--パスワードを設定する場合指定して下さい。--></label>
<input type="text" name="dlgContentShare_password" id="dlgContentShare_password" class="" style="width:200px;" value=''/>
</div>
</br>
</div>
<div id="dlgContentShare_result" style="display: none;" >
<!-- 結果表示 -->
<label id="dlgContentShare_resultUrl" ></label></br>
<label id="dlgContentShare_resultPassword" style="display: none;" ></label></br>
<label id="dlgContentShare_resultDeliveryTerm" style="display: none;" ></label></br>
</br>
</br>
<ul class="contentShare_iconList">
<li><a href="#" id="dlgContentShare_resultMl" ><img src="img/share/email-blue.png" width="57" height="57" ></a></li>
<li><a href="#" id="dlgContentShare_resultFb" ><img src="img/share/facebook.png" width="57" height="57" ></a></li>
<li><a href="#" id="dlgContentShare_resultTw" ><img src="img/share/twitter.png" width="57" height="57" ></a></li>
</ul>
</div>
</div>
<script type="text/javascript" src="./common/js/rome.min.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./js/share.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./js/detail.js?#UPDATEID#" ></script>
......@@ -3,6 +3,8 @@ var messageLevel = {};
function checkLimitContent(contentId, funcOk, funcCancel, isNotUnlockScreen) {
console.log("contentId:" + contentId);
var levelContent = parseInt(messageLevel[contentId].alertMessageLevel);
if (levelContent == 1) {
......
//名前空間用のオブジェクトを用意する
var CONTENTSEARCH = {};
//Start Declare Variables
//----Constant-----------//
var DEFAULT_DISP_NUMBER_RECORD_FROM = 1;
......@@ -94,6 +97,11 @@ $(document).ready(function(){
$('.button-details').live('touchend', readSubmenuFunction);
$('.button-details').live('touchmove', function () { home_isMove = true; });
//Show Share Dialog
$('.button-share').live('click', CONTENTSEARCH.showContentShareDlgFunction);
$('.button-share').live('touchend', CONTENTSEARCH.showContentShareDlgFunction);
$('.button-share').live('touchmove', function () { home_isMove = true; });
$('#main-search').click(searchEventButtonFunction);
$('#txtSearch').keydown(mainSearchKeyDownFunction);
......@@ -125,6 +133,11 @@ $(document).ready(function(){
$('#dspPushMessage').hide();
}
//詳細、共有表示パーツ読み込み
$("#inc_detail").load("./inc_detail.html", function (myData, myStatus, xhr){
//読み込み完了時の処理
});
});
......@@ -202,71 +215,50 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid)
};
abapi('webContentList', params, 'POST', function (data) {
$.each(data.contentList, function (i, post) {
var outputDate ="";
if(post.contentDeliveryDate!=null&&post.contentDeliveryDate!=undefined&&post.contentDeliveryDate!='undefined')
{
outputDate=COMMON.formatDeliveryDate(post.contentDeliveryDate);
}
/* $('#content-grid').append(
'<section>'
+' <div class="cnt_section">'
+' <a class="img">'
+' <canvas height="105px" width="150px" id="content-thumbnail'+post.contentId+'" contentid="'+post.contentId+'" style="display:none;">'
+ ' </canvas>'
+ ' <img id="loadingIcon' + post.contentId + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding-top: 46px; padding-left: 66px"/>'
+ ' </a>'
+' <div class="text">'
+' <a id="title'+post.contentId+'" class="dialog name" contentid="'+post.contentId+'">'+ COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 25)+'</a>'
+' <div class="info">'
+' <ul class="date">'
+' <li><span class="lang" lang="txtPubDt"> </span> : '+outputDate+'</li>'
+' <li><span class="lang" lang="txtViewDt"> </span>:<span id="lblVdate'+post.contentId+'"> </span></li>'
+' </ul>'
+' <ul class="pic">'
+' <li><img src="'+COMMON.DEFAULT_IMG_OPTION_MEMO+'" id="imgMemo'+post.contentId+'" class="sticker" /></li>'
+' <li><img src="'+COMMON.DEFAULT_IMG_OPTION_MARKING+'" id="imgBookMark'+post.contentId+'" class="pen" /></li>'
+' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">読む</a></li>'
+' </ul>'
+' </div>'
+' </div>'
+' </div>'
+'</section>'
);
*/
$('#content-grid').append(
'<section class="sectionsearchlist">'
+ ' <div class="cnt_section_list">'
+ ' <a class="img">'
+ ' <canvas height="110" width="150" id="content-thumbnail' + post.contentId + '" contentid="' + post.contentId + '" style="display:none;">'
+ ' </canvas>'
+ ' <img id="loadingIcon' + post.contentId + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding: 46px; "/>'
+ ' </a>'
+ ' <div class="text">'
+ ' <a id="title' + post.contentId + '" class="name dialog" contentid="' + post.contentId + '">'
+ ' <img class="listIcon" src="' + HEADER.getIconTypeContent(post.contentType)+'" width="20" height="20">'
+ COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 20)
+ ' </a>'
+ ' <div class="info">'
+ ' <ul class="date">'
+ ' <li><span class="lang" lang="txtPubDt"> </span> : ' + outputDate + '</li>'
+ ' <li><span class="lang" lang="txtViewDt"> </span>:<span id="lblVdate' + post.contentId + '"> </span></li>'
+ ' </ul>'
+ ' <ul class="pic">'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>'
+ ' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">'+I18N.i18nText("txtRead")+'</a></li>'
+ ' </ul>'
+ ' </div>'
+ ' </div>'
+ ' </div>'
+ '</section>'
);
getNextRecordNumForList();
$.each(data.contentList, function (i, post) {
var outputDate ="";
if(post.contentDeliveryDate!=null&&post.contentDeliveryDate!=undefined&&post.contentDeliveryDate!='undefined')
{
outputDate=COMMON.formatDeliveryDate(post.contentDeliveryDate);
}
var htmlTemp ='<section class="sectionsearchlist">'
+ ' <div class="cnt_section_list">'
+ ' <a class="img">'
+ ' <canvas height="110" width="150" id="content-thumbnail' + post.contentId + '" contentid="' + post.contentId + '" style="display:none;">'
+ ' </canvas>'
+ ' <img id="loadingIcon' + post.contentId + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding: 46px; "/>'
+ ' </a>'
+ ' <div class="text">'
+ ' <a id="title' + post.contentId + '" class="name dialog" contentid="' + post.contentId + '">'
+ ' <img class="listIcon" src="' + HEADER.getIconTypeContent(post.contentType)+'" width="20" height="20">'
+ COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 20)
+ ' </a>'
+ ' <div class="info">'
+ ' <ul class="date">'
+ ' <li><span class="lang" lang="txtPubDt"> </span> : ' + outputDate + '</li>'
+ ' <li><span class="lang" lang="txtViewDt"> </span>:<span id="lblVdate' + post.contentId + '"> </span></li>'
+ ' </ul>'
+ ' <ul class="pic">'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>'
+ ' <li><ul class="iconList">{share}<li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">読む</a></li></ul></li>'
+ ' </ul>'
+ ' </div>'
+ ' </div>'
+ ' </div>'
+ '</section>';
var shareHtml = "";
if( post.readerShare == '1' ){
shareHtml ='<li><a class="read lang button-share" contentid="' + post.contentId + '" lang="txtShare">共有</a></li>';
}
htmlTemp = htmlTemp.replace(/\{share\}/g, shareHtml);
$('#content-grid').append(htmlTemp);
getNextRecordNumForList();
//assign thumbnail to array
var formatThumbnail = post.contentThumbnail;
......@@ -1570,4 +1562,34 @@ function removeHoverCss(){
$('#control-sort-titlekana').removeClass('nottouchdevice');
$('#control-sort-releasedate').removeClass('nottouchdevice');
}
};
\ No newline at end of file
};
//Dialog Read Button CLick
CONTENTSEARCH.showContentShareDlgFunction = function(e) {
if (e) {
e.preventDefault();
}
if (home_isMove == true) {
home_isMove = false;
return;
}
var contentId = $(this).attr('contentid');
// check limit of content
checkLimitContent(contentId,
function()
{
SHARE.contentId = contentId;
SHARE.contentTitle = "";
SHARE.openContentShare();
},
function(){
//console.log("checkLimitContent_bbb");
}
);
};
......@@ -7,6 +7,7 @@ DETAIL.displayData = {
contentID: "",
contentTitle: "",
contentDetail: "",
contentShare: "",
contentThumbnail: "",
deliveryDate: (new Date()),
pages: []
......@@ -31,6 +32,7 @@ DETAIL.openContentDetail = function() {
contentID: "",
contentTitle: "",
contentDetail: "",
contentShare: "",
contentThumbnail: "",
deliveryDate: (new Date()),
pages: []
......@@ -48,9 +50,13 @@ DETAIL.openContentDetail = function() {
$("#txtContentDetail").text('');
$("#contentDetailClose").click(DETAIL.contentDetailClose_Click);
$("#contentdetail_dspRead").click(DETAIL.contentdetail_dspRead_Click);
//if( ClientData.serviceOpt_content_share() != '2'){
//$("#contentdetail_dspShare").click(SHARE.openContentShare);
$("#contentdetail_dspShare").hide();
//}
COMMON.lockLayout();
$("#contentDetail").css('z-index', 101);
$("#sectionContentDetail").show();
......@@ -71,12 +77,17 @@ DETAIL.openContentDetail = function() {
// Get content detail
DETAIL.displayData.contentTitle = data.contentData.contentName;
DETAIL.displayData.contentDetail = data.contentData.contentDetail;
if( ClientData.serviceOpt_content_share() == '2'){
if( data.contentData.readerShare ){
//SHARE.contentId = DETAIL.displayData.contentID;
DETAIL.displayData.contentShare = data.contentData.readerShare;
}
}
DETAIL.displayData.deliveryDate = COMMON.convertToDate(data.contentData.deliveryStartDate);
//Start Function : No.12 -- Editor : Viet Nguyen -- Date : 08/01/2013 -- Summary : Create new function to return content type of content.
if(!COMMON.isPdfContent(contentType)){
DETAIL.showContentNotPDF(DETAIL.displayData.contentTitle,DETAIL.displayData.contentDetail,DETAIL.displayData.contentThumbnail,DETAIL.displayData.deliveryDate);
DETAIL.showContentNotPDF(DETAIL.displayData);
}
else{
// Get pages
......@@ -89,7 +100,7 @@ DETAIL.openContentDetail = function() {
}
}
// Show to screen
DETAIL.showContent(DETAIL.displayData.contentID, COMMON.truncate(DETAIL.displayData.contentTitle, 20), DETAIL.displayData.contentDetail, ClientData.contentInfo_contentThumbnail(), DETAIL.displayData.deliveryDate, DETAIL.displayData.pages);
DETAIL.showContent(DETAIL.displayData);
},
null
);
......@@ -196,26 +207,35 @@ DETAIL.contentdetail_dspRead_Click_callback = function(outputId) {
//Start Function : No.12 -- Editor : Viet Nguyen -- Date : 08/01/2013 -- Summary : Create new function to return content type of content.
DETAIL.showContentNotPDF = function(contentTitle, contentDetail, contentThumbnail, deliveryDate) {
$("#txtPubDt2_Dsp").text(deliveryDate.jpDateString() + " " + deliveryDate.jpShortTimeString());
$("#txtContentDetail").text(contentDetail);
$("#txtContentTitle").text(contentTitle);
DETAIL.showContentNotPDF = function(displayData) {
$("#txtPubDt2_Dsp").text(displayData.deliveryDate.jpDateString() + " " + displayData.deliveryDate.jpShortTimeString());
$("#txtContentDetail").text(displayData.contentDetail);
//$("#txtContentTitle").text(COMMON.truncate(displayData.contentTitle, 20));
$("#txtContentTitle").text(displayData.contentTitle);
//コンテンツ共有
if( displayData.contentShare == '1' ){
SHARE.contentId = displayData.contentID;
SHARE.contentTitle = displayData.contentTitle;
$("#contentdetail_dspShare").show();
$("#contentdetail_dspShare").click(SHARE.openContentShare);
}
var tempContentType = ClientData.contentInfo_contentType();
if(contentThumbnail == '' || contentThumbnail == null || contentThumbnail == 'undefined'){
if(displayData.contentThumbnail == '' || displayData.contentThumbnail == null || displayData.contentThumbnail == 'undefined'){
if(!COMMON.isPdfContent(tempContentType)){
var src = HEADER.getThumbnailForOtherType(contentType);
if( src != '' ){
contentThumbnail = src;
displayData.contentThumbnail = src;
}
}
}else{
contentThumbnail = contentThumbnail;
//}else{
//contentThumbnail = contentThumbnail;
}
var imgTemp = new Image();
$("#imgContentThumbnail").attr("src", contentThumbnail);
$("#imgContentThumbnail").attr("src", displayData.contentThumbnail);
imgTemp.onload = function () {
//resize Image
......@@ -237,18 +257,26 @@ DETAIL.showContentNotPDF = function(contentTitle, contentDetail, contentThumbnai
};
imgTemp.src = contentThumbnail;
imgTemp.src = displayData.contentThumbnail;
};
//End Function : No.12 -- Editor : Viet Nguyen -- Date : 08/01/2013 -- Summary : Create new function to return content type of content.
// Show detail content
DETAIL.showContent = function(contentID, contentTitle, contentDetail, contentThumbnail, deliveryDate, pages) {
$("#txtPubDt2_Dsp").text(deliveryDate.jpDateString() + " " + deliveryDate.jpShortTimeString());
$("#txtContentDetail").text(contentDetail);
$("#txtContentTitle").text(contentTitle);
DETAIL.showContent = function(displayData) {
$("#txtPubDt2_Dsp").text(displayData.deliveryDate.jpDateString() + " " + displayData.deliveryDate.jpShortTimeString());
$("#txtContentDetail").text(displayData.contentDetail);
$("#txtContentTitle").text(COMMON.truncate(displayData.contentTitle, 20));
//コンテンツ共有
if( displayData.contentShare == '1' ){
SHARE.contentId = displayData.contentID;
SHARE.contentTitle = displayData.contentTitle;
$("#contentdetail_dspShare").show();
$("#contentdetail_dspShare").click(SHARE.openContentShare);
}
$("#imgContentThumbnail").attr("src", contentThumbnail);
$("#imgContentThumbnail").attr("src", displayData.contentThumbnail);
var imgTemp = new Image();
imgTemp.onload = function () {
......@@ -272,13 +300,13 @@ DETAIL.showContent = function(contentID, contentTitle, contentDetail, contentThu
};
imgTemp.src = contentThumbnail;
imgTemp.src = displayData.contentThumbnail;
//resizeThumbnailContentDetail(contentThumbnail, 120, 160);
// Show pages
for (var nIndex = 0; nIndex < pages.length; nIndex++) {
for (var nIndex = 0; nIndex < displayData.pages.length; nIndex++) {
//insertRow(imgSample, pages[nIndex].pageText, pages[nIndex].pageNo);
DETAIL.insertRow(pages[nIndex].pageThumbnail, COMMON.truncate(COMMON.getLines(pages[nIndex].pageText, 3), 45), pages[nIndex].pageNo); //55
DETAIL.insertRow(displayData.pages[nIndex].pageThumbnail, COMMON.truncate(COMMON.getLines(displayData.pages[nIndex].pageText, 3), 45), displayData.pages[nIndex].pageNo); //55
}
};
......
......@@ -69,11 +69,12 @@ $(document).ready(function () {
$('#login-username').attr("title", ClientData.userInfo_userName());
}
$('#dlgConfirmBackup-backup').click(HEADER.confirmWithBackupFunction);
$('#dlgConfirmBackup-withoutbackup').click(confirmWithoutBackupFunction);
$('#dlgConfirmBackup1').hide();
//ログアウト時バックアップ確認パーツ読み込み
$("#inc_backup").load("./inc_backup.html", function (myData, myStatus, xhr){
$('#dlgConfirmBackup-backup').click(HEADER.confirmWithBackupFunction);
$('#dlgConfirmBackup-withoutbackup').click(HEADER.confirmWithoutBackupFunction);
$('#dlgConfirmBackup1').hide();
});
$('#searchbox-key').keydown(HEADER.headerSearchKeyDownEventFunction);
......@@ -451,7 +452,7 @@ HEADER.webLogoutEvent = function(){
};
//Logout Without Backup function
function confirmWithoutBackupFunction(e) {
HEADER.confirmWithoutBackupFunction = function(e) {
e.preventDefault();
var remember = $('#chkRememberBackup').attr('checked');
......
//名前空間用のオブジェクトを用意する
var HISTORY = {};
//Start Declare Variables
//----Constant-----------//
var DEFAULT_DISP_NUMBER_RECORD_FROM = 1;
......@@ -12,8 +15,6 @@ var DEFAULT_SEARCH_DIVISION = 0;
//var DEFAULT_IMG_CONTENT_EDIT = 'img/common/band_updated.png';
//var DEFAULT_IMG_CONTENT_NEW = 'img/common/band_new.png';
var iNumberOfNextRecord = 15;
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Create new Array for function No.12.
......@@ -91,9 +92,14 @@ $(document).ready(function(){
//Go To Details Page
$('.button-details').live('click', readSubmenuFunction);
//$('.button-details').live('touchstart', readSubmenuFunction);
$('.button-details').live('touchend', readSubmenuFunction);
$('.button-details').live('touchmove', function () { home_isMove = true; });
$('.button-details').live('touchend', readSubmenuFunction);
$('.button-details').live('touchmove', function () { home_isMove = true; });
//Show Share Dialog
$('.button-share').live('click', HISTORY.showContentShareDlgFunction);
$('.button-share').live('touchend', HISTORY.showContentShareDlgFunction);
$('.button-share').live('touchmove', function () { home_isMove = true; });
$(window).resize(function () {
if ($("#contentDetail").css("display") != "none") {
// Refresh panel of detail to center.
......@@ -114,6 +120,11 @@ $(document).ready(function(){
$('#dspPushMessage').hide();
}
//詳細、共有表示パーツ読み込み
$("#inc_detail").load("./inc_detail.html", function (myData, myStatus, xhr){
//読み込み完了時の処理
});
});
//Call API
......@@ -148,34 +159,6 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid)
var viewdate = renderViewDate(post.contentId);
if (viewdate != null && viewdate != 'undefined' && viewdate != '') {
/*htmlTemp += '<section class="sectionhistory">'
//$('#content-grid').append(
// '<section>'
+ ' <div class="cnt_section">'
+ ' <a class="img">'
+ ' <canvas style="display:none" height="105px" width="150px" class="home_canvas" id="content-thumbnail' + post.contentId + '" contentid="' + post.contentId + '">'
+ ' </canvas>'
+ ' <img id="imgloading'+ post.contentId +'" class="home_canvas" src="./img/data_loading.gif" height="25px" width="25px" style=""/>'
+ ' </a>'
+ ' <div class="text">'
+ ' <a id="title' + post.contentId + '" class="dialog name" contentid="' + post.contentId + '">' + COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 25) + '</a>'
+ ' <div class="info">'
+ ' <ul class="date">'
+ ' <li><span class="lang" lang="txtPubDt">' + I18N.i18nText("txtPubDt") + '</span> : ' + outputDate + '</li>'
+ ' <li><span class="lang" lang="txtViewDt">' + I18N.i18nText("txtViewDt") + '</span>:<span id="lblVdate' + post.contentId + '"> </span></li>'
+ ' </ul>'
+ ' <ul class="pic">'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>'
+ ' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">' + I18N.i18nText("txtRead") + '</a></li>'
+ ' </ul>'
+ ' </div>'
+ ' </div>'
+ ' </div>'
+ '</section>'*/
var htmlTemp = '<section class="sectionhistory">'
+ ' <div class="cnt_section_list">'
+ ' <a class="img">'
......@@ -196,18 +179,21 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid)
+ ' <ul class="pic">'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>'
+ ' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">'+I18N.i18nText("txtRead")+'</a></li>'
+ ' <li><ul class="iconList">{share}<li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">'+I18N.i18nText("txtRead")+'</a></li></ul></li>'
+ ' </ul>'
+ ' </div>'
+ ' </div>'
+ ' </div>'
+ '</section>';
var shareHtml = "";
if( post.readerShare == '1' ){
shareHtml ='<li><a class="read lang button-share" contentid="' + post.contentId + '" lang="txtShare">'+I18N.i18nText("txtShare")+'</a></li>';
}
htmlTemp = htmlTemp.replace(/\{share\}/g, shareHtml);
$('#content-grid').append(htmlTemp);
}
}
for (var i = 0; i < data.contentList.length; i++) {
post = data.contentList[i];
......@@ -245,7 +231,7 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid)
$('#lblVdate' + post.contentId).html(viewdate);
addReadContentToArray(post.contentId, post.resourceVersion, post.metaVersion, post.contentThumbnail, post.contentTitle, returnContentTitleKana(post.contentId), post.contentDeliveryDate,post.contentType);
addReadContentToArray(post.contentId, post.resourceVersion, post.metaVersion, post.contentThumbnail, post.contentTitle, returnContentTitleKana(post.contentId), post.contentDeliveryDate,post.contentType, post.readerShare );
//showContentThumbnail();
}
......@@ -280,21 +266,7 @@ function handleLanguage(){
if (ClientData.searchCond_sortOrder() != null && ClientData.searchCond_sortOrder() != 'undefined' || ClientData.searchCond_sortType() != '') {
var typeSort = ClientData.searchCond_sortType();
var orderSort = ClientData.searchCond_sortOrder();
HEADER.setStatusSort('#'+$('#menu_sort li.current a').attr('id'),orderSort == COMMON.Consts.ConstOrderSetting_Asc);
// if (typeSort == 2) {
// if (orderSort == COMMON.Consts.ConstOrderSetting_Asc) {
// $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▲');
// $('#titlekana-sorttype').css('width', '12px');
// }
// else {
// $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▼');
// $('#titlekana-sorttype').css('width', '12px');
// }
// }
}
if(noRecordFlg){
......@@ -446,11 +418,6 @@ function reRenderPageNumber(dispRecord, dispTotal){
//Sort By Title Function
function sortByTitleFunction(){
// $(this).addClass('active_tops');
// $('#control-sort-titlekana').removeClass('active_tops');
// $('#control-sort-releasedate').removeClass('active_tops');
// $('#control-sort-viewdate').removeClass('active_tops');
var sortOrder = ClientData.searchCond_sortOrder();
var sortType = ClientData.searchCond_sortType();
var sid = ClientData.userInfo_sid();
......@@ -462,23 +429,11 @@ function sortByTitleFunction(){
if(sortOrder == COMMON.Consts.ConstOrderSetting_Asc)
{
if(sortType == '1'){
sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
// $('#title-sorttype').html('');
// $('#title-sorttype').html('▼');
// $('#title-sorttype').css('width', '12px');
// $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html('');
// $('#vDate-sorttype').html('');
sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
sortByTitleDesc();
}
else{
sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html('');
// $('#title-sorttype').html('▲');
// $('#title-sorttype').css('width', '12px');
// $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html('');
// $('#vDate-sorttype').html('');
sortByTitleAsc();
}
ClientData.searchCond_sortOrder(sortOrder);
......@@ -486,12 +441,6 @@ function sortByTitleFunction(){
else
{
sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html('');
// $('#title-sorttype').html('▲');
// $('#title-sorttype').css('width', '12px');
// $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html('');
// $('#vDate-sorttype').html('');
ClientData.searchCond_sortOrder(sortOrder);
sortByTitleAsc();
}
......@@ -510,11 +459,6 @@ function sortByTitleFunction(){
//Sort By Title Kana function
function sortByTitleKanaFunction(){
// $(this).addClass('active_tops');
// $('#control-sort-title').removeClass('active_tops');
// $('#control-sort-releasedate').removeClass('active_tops');
// $('#control-sort-viewdate').removeClass('active_tops');
var sortOrder = ClientData.searchCond_sortOrder();
var sortType = ClientData.searchCond_sortType();
var sid = ClientData.userInfo_sid();
......@@ -527,22 +471,10 @@ function sortByTitleKanaFunction(){
{
if(sortType == '2'){
sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
// $('#title-sorttype').html('');
// $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▼');
// $('#titlekana-sorttype').css('width', '12px');
// $('#rDate-sorttype').html('');
// $('#vDate-sorttype').html('');
sortByTitleKanaDesc();
}
else{
sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html('');
// $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▲');
// $('#titlekana-sorttype').css('width', '12px');
// $('#rDate-sorttype').html('');
// $('#vDate-sorttype').html('');
sortByTitleKanaAsc();
}
ClientData.searchCond_sortOrder(sortOrder);
......@@ -550,12 +482,6 @@ function sortByTitleKanaFunction(){
else
{
sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html('');
// $('#titlekana-sorttype').html('');
// $('#titlekana-sorttype').html('▲');
// $('#titlekana-sorttype').css('width', '12px');
// $('#rDate-sorttype').html('');
// $('#vDate-sorttype').html('');
ClientData.searchCond_sortOrder(sortOrder);
sortByTitleKanaAsc();
}
......@@ -574,11 +500,6 @@ function sortByTitleKanaFunction(){
//Sort By Release Date
function sortByReleaseDateFunction(){
// $(this).addClass('active_tops');
// $('#control-sort-titlekana').removeClass('active_tops');
// $('#control-sort-title').removeClass('active_tops');
// $('#control-sort-viewdate').removeClass('active_tops');
var sortOrder = ClientData.searchCond_sortOrder();
var sortType = ClientData.searchCond_sortType();
var sid = ClientData.userInfo_sid();
......@@ -591,22 +512,10 @@ function sortByReleaseDateFunction(){
{
if(sortType == '3'){
sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
// $('#title-sorttype').html('');
// $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html('');
// $('#rDate-sorttype').html('▼');
// $('#rDate-sorttype').css('width', '12px');
// $('#vDate-sorttype').html('');
sortByPublishDateDesc();
}
else{
sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html('');
// $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html('');
// $('#rDate-sorttype').html('▲');
// $('#rDate-sorttype').css('width', '12px');
// $('#vDate-sorttype').html('');
sortByPublishDateAsc();
}
ClientData.searchCond_sortOrder(sortOrder);
......@@ -614,12 +523,6 @@ function sortByReleaseDateFunction(){
else
{
sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html('');
// $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html('');
// $('#rDate-sorttype').html('▲');
// $('#rDate-sorttype').css('width', '12px');
// $('#vDate-sorttype').html('');
ClientData.searchCond_sortOrder(sortOrder);
sortByPublishDateAsc();
}
......@@ -634,11 +537,6 @@ function sortByReleaseDateFunction(){
//Sort By View Date
function sortByViewDateFunction(){
// $(this).addClass('active_tops');
// $('#control-sort-titlekana').removeClass('active_tops');
// $('#control-sort-title').removeClass('active_tops');
// $('#control-sort-releasedate').removeClass('active_tops');
var sortOrder = ClientData.searchCond_sortOrder();
var sortType = ClientData.searchCond_sortType();
......@@ -646,38 +544,17 @@ function sortByViewDateFunction(){
{
if(sortType == '4'){
sortOrder = COMMON.Consts.ConstOrderSetting_Desc;
// $('#title-sorttype').html('');
// $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html('');
// $('#rDate-sorttype').html('');
// $('#vDate-sorttype').html('');
// $('#vDate-sorttype').html('▼');
// $('#vDate-sorttype').css('width', '12px');
sortByViewDateDesc();
}
else{
sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html('');
// $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html('');
// $('#rDate-sorttype').html('');
// $('#vDate-sorttype').html('');
// $('#vDate-sorttype').html('▲');
// $('#vDate-sorttype').css('width', '12px');
sortByViewDateAsc();
}
ClientData.searchCond_sortOrder(sortOrder);
}
else
{
sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
// $('#title-sorttype').html('');
// $('#titlekana-sorttype').html('');
// $('#rDate-sorttype').html('');
// $('#rDate-sorttype').html('');
// $('#vDate-sorttype').html('');
// $('#vDate-sorttype').html('▲');
// $('#vDate-sorttype').css('width', '12px');
sortOrder = COMMON.Consts.ConstOrderSetting_Asc;
sortByViewDateAsc();
ClientData.searchCond_sortOrder(sortOrder);
}
......@@ -714,50 +591,6 @@ function returnContentType(contentid){
}
};
////Get resource Id of content
//function downloadResourceById(contentId){
// var params = {
// sid: ClientData.userInfo_sid(),
// contentId: contentId,
// getType: '2',
// };
//
// var resourceUrl;
//
// abapi('webGetContent', params, 'GET', function (data) {
// var resourceId;
//
// $.each(data.contentData , function(i, n){
// if(typeof n == "object"){
// resourceId = n.resourceId;
// }
// });
//
// //Get resource
// resourceUrl = getResourceByIdFromAPI(resourceId);
// window.open(resourceUrl, "_blank");
// // redraw content remove new icon
// drawEditImage(contentId);
// });
//};
////Download resource
//function getResourceByIdFromAPI(resourceId){
// return getURL("webResourceDownload") + "/?sid=" + ClientData.userInfo_sid() + "&resourceId=" + resourceId + "&isDownload=true";
//};
///* get url */
//function getURL(apiName) {
// var sysSettings = avwSysSetting();
// var url = sysSettings.apiResourceDlUrl;
// url = AVWEB.format(url, ClientData.userInfo_accountPath()) + '/' + apiName;
// return url;
//};
//End Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Create new function to return content type of content.
//Dialog Read Button CLick
function readSubmenuFunction(e){
if (e) {
......@@ -1371,7 +1204,7 @@ function sortByViewDateDesc(){
renderContentAfterSort(resultArr);
};
function addReadContentToArray(strContentId, strResourceVersion, strMetaVersion, strThumbnail, strTitle, strTitleKana, strDelivDate,contentType){
function addReadContentToArray(strContentId, strResourceVersion, strMetaVersion, strThumbnail, strTitle, strTitleKana, strDelivDate,contentType, readerShare){
if (contentViewData.length > 0) {
var flag;
for(var j = 0; j < contentViewData.length; j++){
......@@ -1385,11 +1218,11 @@ function addReadContentToArray(strContentId, strResourceVersion, strMetaVersion,
}
if(!flag){
contentViewData.push({contentid: strContentId, originviewdate: formatDate(returnOriginalViewDate(strContentId)), contenttitle: strTitle, contenttitlekana: strTitleKana, deliverydate: strDelivDate, resourceversion: strResourceVersion, metaversion: strMetaVersion, thumbnail: COMMON.formatStringBase64(strThumbnail),contenttype:contentType });
contentViewData.push({contentid: strContentId, originviewdate: formatDate(returnOriginalViewDate(strContentId)), contenttitle: strTitle, contenttitlekana: strTitleKana, deliverydate: strDelivDate, resourceversion: strResourceVersion, metaversion: strMetaVersion, thumbnail: COMMON.formatStringBase64(strThumbnail),contenttype:contentType, readerShare:readerShare });
}
}else{
contentViewData.push({contentid: strContentId, originviewdate: formatDate(returnOriginalViewDate(strContentId)), contenttitle: strTitle, contenttitlekana: strTitleKana, deliverydate: strDelivDate, resourceversion: strResourceVersion, metaversion: strMetaVersion, thumbnail: COMMON.formatStringBase64(strThumbnail),contenttype:contentType });
contentViewData.push({contentid: strContentId, originviewdate: formatDate(returnOriginalViewDate(strContentId)), contenttitle: strTitle, contenttitlekana: strTitleKana, deliverydate: strDelivDate, resourceversion: strResourceVersion, metaversion: strMetaVersion, thumbnail: COMMON.formatStringBase64(strThumbnail),contenttype:contentType, readerShare:readerShare });
}
};
......@@ -1608,59 +1441,42 @@ function renderContentAfterSort(contentSortArr){
post = contentSortArr[i];
var outputDeliveryDate = COMMON.formatDeliveryDate(post.deliverydate);
/*htmlTemp += '<section class="sectionhistory">'
+ ' <div class="cnt_section">'
+ ' <a class="img">'
+ ' <canvas style="display:none" height="105px" width="150px" class="home_canvas" id="content-thumbnail' + post.contentid + '" contentid="' + post.contentid + '">'
+ ' </canvas>'
+ ' <img id="imgloading'+ post.contentid +'" src="./img/data_loading.gif" height="25px" class="home_canvas" width="25px"/>'
+ ' </a>'
+ ' <div class="text">'
+ ' <a id="title' + post.contentid + '" class="dialog name" contentid="' + post.contentid + '">' + COMMON.truncate(COMMON.htmlEncode(post.contenttitle), 25) + '</a>'
+ ' <div class="info">'
+ ' <ul class="date">'
+ ' <li><span class="lang" lang="txtPubDt">' + I18N.i18nText("txtPubDt") + '</span> : ' + outputDeliveryDate + '</li>'
+ ' <li><span class="lang" lang="txtViewDt">' + I18N.i18nText("txtViewDt") + '</span>:<span id="lblVdate' + post.contentid + '"> </span></li>'
+ ' </ul>'
+ ' <ul class="pic">'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentid + '" class="sticker" /></li>'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentid + '" class="pen" /></li>'
+ ' <li><a class="read lang button-details" contentid="' + post.contentid + '" lang="txtRead">' + I18N.i18nText("txtRead") + '</a></li>'
+ ' </ul>'
+ ' </div>'
+ ' </div>'
+ ' </div>'
+ '</section>';*/
var htmlTemp = '<section class="sectionhistory">'
+ ' <div class="cnt_section_list">'
+ ' <a class="img">'
+ ' <canvas height="110" width="150" id="content-thumbnail' + post.contentid + '" contentid="' + post.contentid + '" style="display:none;">'
+ ' </canvas>'
+ ' <img id="imgloading' + post.contentid + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding: 46px; "/>'
+ ' </a>'
+ ' <div class="text">'
+ ' <a id="title' + post.contentid + '" class="name dialog" contentid="' + post.contentid + '">'
+ ' <img class="listIcon" src="' + HEADER.getIconTypeContent(post.contenttype)+'" width="20" height="20">'
+ COMMON.truncate(COMMON.htmlEncode(post.contenttitle), 20)
+ ' </a>'
+ ' <div class="info">'
+ ' <ul class="date">'
+ ' <li><span class="lang" lang="txtPubDt">'+I18N.i18nText("txtPubDt")+'</span> : ' + outputDeliveryDate + '</li>'
+ ' <li><span class="lang" lang="txtViewDt">'+I18N.i18nText("txtViewDt")+'</span>:<span id="lblVdate' + post.contentid + '"> </span></li>'
+ ' </ul>'
+ ' <ul class="pic">'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentid + '" class="sticker" /></li>'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentid + '" class="pen" /></li>'
+ ' <li><a class="read lang button-details" contentid="' + post.contentid + '" lang="txtRead">'+I18N.i18nText("txtRead")+'</a></li>'
+ ' </ul>'
+ ' </div>'
+ ' </div>'
+ ' </div>'
+ '</section>';
$('#content-grid').append(htmlTemp);
}
var htmlTemp = '<section class="sectionhistory">'
+ ' <div class="cnt_section_list">'
+ ' <a class="img">'
+ ' <canvas height="110" width="150" id="content-thumbnail' + post.contentid + '" contentid="' + post.contentid + '" style="display:none;">'
+ ' </canvas>'
+ ' <img id="imgloading' + post.contentid + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding: 46px; "/>'
+ ' </a>'
+ ' <div class="text">'
+ ' <a id="title' + post.contentid + '" class="name dialog" contentid="' + post.contentid + '">'
+ ' <img class="listIcon" src="' + HEADER.getIconTypeContent(post.contenttype)+'" width="20" height="20">'
+ COMMON.truncate(COMMON.htmlEncode(post.contenttitle), 20)
+ ' </a>'
+ ' <div class="info">'
+ ' <ul class="date">'
+ ' <li><span class="lang" lang="txtPubDt">'+I18N.i18nText("txtPubDt")+'</span> : ' + outputDeliveryDate + '</li>'
+ ' <li><span class="lang" lang="txtViewDt">'+I18N.i18nText("txtViewDt")+'</span>:<span id="lblVdate' + post.contentid + '"> </span></li>'
+ ' </ul>'
+ ' <ul class="pic">'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentid + '" class="sticker" /></li>'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentid + '" class="pen" /></li>'
+ ' <li><ul class="iconList">{share}<li><a class="read lang button-details" contentid="' + post.contentid + '" lang="txtRead">'+I18N.i18nText("txtRead")+'</a></li></ul></li>'
+ ' </ul>'
+ ' </div>'
+ ' </div>'
+ ' </div>'
+ '</section>';
var shareHtml = "";
if( post.readerShare == '1' ){
shareHtml ='<li><a class="read lang button-share" contentid="' + post.contentid + '" lang="txtShare">'+I18N.i18nText("txtShare")+'</a></li>';
}
htmlTemp = htmlTemp.replace(/\{share\}/g, shareHtml);
$('#content-grid').append(htmlTemp);
}
for (var i = 0; i < contentSortArr.length; i++) {
post = contentSortArr[i];
......@@ -1753,3 +1569,33 @@ function removeHoverCss(){
$('#control-sort-viewdate').removeClass('nottouchdevice');
}
};
//Dialog Read Button CLick
HISTORY.showContentShareDlgFunction = function(e) {
if (e) {
e.preventDefault();
}
if (home_isMove == true) {
home_isMove = false;
return;
}
var contentId = $(this).attr('contentid');
// check limit of content
checkLimitContent(contentId,
function()
{
SHARE.contentId = contentId;
SHARE.contentTitle = "";
SHARE.openContentShare();
},
function(){
//console.log("checkLimitContent_bbb");
}
);
};
......@@ -133,6 +133,11 @@ $(document).ready(function () {
$('.button-details').live('touchend', HOME.readSubmenuFunction);
$('.button-details').live('touchmove', function () { HOME.home_isMove = true; });
//Show Share Dialog
$('.button-share').live('click', HOME.showContentShareDlgFunction);
$('.button-share').live('touchend', HOME.showContentShareDlgFunction);
$('.button-share').live('touchmove', function () { HOME.home_isMove = true; });
$('#dlgSubMenu').hover(HOME.subMenuHoverFunction, HOME.subMenuHoverOffFunction);
if (COMMON.isTouchDevice() == true) {
......@@ -215,6 +220,11 @@ $(document).ready(function () {
$('.tab_bg_color').css({ "overflow-x": "scroll" });
}
//詳細、共有表示パーツ読み込み
$("#inc_detail").load("./inc_detail.html", function (myData, myStatus, xhr){
//読み込み完了時の処理
});
});
//日比谷カスタム ここから
......@@ -476,228 +486,115 @@ HOME.canvasClickFunction_callback = function(outputId)
//Check Display mode to handle action
if (HOME.isShowBookShelf != null) {
if (!HOME.isShowBookShelf) {
if (!HOME.isShowBookShelf) {
//Store Content id that user has read
if (ClientData.ReadingContentIds().length > 0) {
HOME.contentIdArray = ClientData.ReadingContentIds();
//Store Content id that user has read
if (ClientData.ReadingContentIds().length > 0) {
HOME.contentIdArray = ClientData.ReadingContentIds();
for (var nIndex = 0; nIndex < HOME.contentIdArray.length; nIndex++) {
if (HOME.contentIdArray[nIndex].contentid == outputId) {
checkflag = true;
break;
}
else {
checkflag = false;
}
for (var nIndex = 0; nIndex < HOME.contentIdArray.length; nIndex++) {
if (HOME.contentIdArray[nIndex].contentid == outputId) {
checkflag = true;
break;
}
if (!checkflag) {
HOME.contentIdArray.push({ contentid: outputId, viewdate: '', originviewdate: '' });
else {
checkflag = false;
}
}
else {
if (!checkflag) {
HOME.contentIdArray.push({ contentid: outputId, viewdate: '', originviewdate: '' });
}
//Renew ReadingContentID
var newArray = [];
ClientData.ReadingContentIds(newArray);
//Set data for readingcontentid
ClientData.ReadingContentIds(HOME.contentIdArray);
//Set ResouceVersion for content
COMMON.setResourceVersionData(outputId);
//Set MetaVersion for content
COMMON.setMetaVersionData(outputId);
//Close Submenu
$('#dlgSubMenu').hide();
//Delete 'new' icon
HOME.drawEditImage(outputId);
//Open content Detail
DETAIL.openContentDetail();
}
else {
//Store Content id that user has read
if (ClientData.ReadingContentIds().length > 0) {
HOME.contentIdArray = ClientData.ReadingContentIds();
for (var nIndex = 0; nIndex < HOME.contentIdArray.length; nIndex++) {
if (HOME.contentIdArray[nIndex].contentid == outputId) {
checkflag = true;
if (HOME.contentIdArray[nIndex].viewdate == null || HOME.contentIdArray[nIndex].viewdate == 'undefined' || HOME.contentIdArray[nIndex].viewdate == '') {
HOME.contentIdArray[nIndex].viewdate = outputDate;
HOME.contentIdArray[nIndex].originviewdate = date;
}
break;
}
else {
checkflag = false;
}
}
if (!checkflag) {
HOME.contentIdArray.push({ contentid: outputId, viewdate: outputDate, originviewdate: date });
}
}
else {
HOME.contentIdArray.push({ contentid: outputId, viewdate: outputDate, originviewdate: date });
}
//Renew ReadingContentID
var newArray = [];
ClientData.ReadingContentIds(newArray);
//Set data for readingcontentid
ClientData.ReadingContentIds(HOME.contentIdArray);
//Set ResouceVersion for content
COMMON.setResourceVersionData(outputId);
//Set MetaVersion for content
COMMON.setMetaVersionData(outputId);
//$('body,html').animate({ scrollTop: 0 }, 0);
ClientData.IsRefresh(false);
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : check for download content type other.
if(contentType == COMMON.ContentTypeKeys.Type_Others){
//Download content
HEADER.downloadResourceById(outputId);
// redraw content remove new icon
HOME.drawEditImage(outputId);
}
else if( contentType == COMMON.ContentTypeKeys.Type_Link ){
//link content
HEADER.viewLinkContentById(outputId);
// redraw content remove new icon
HOME.drawEditImage(outputId);
}
else{
//Go to Conten view page
avwScreenMove(COMMON.ScreenIds.ContentView);
}
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : check for download content type other.
HOME.contentIdArray.push({ contentid: outputId, viewdate: '', originviewdate: '' });
}
} else {
if (!HOME.isShowBookShelf) {
//Store Content id that user has read
if (ClientData.ReadingContentIds().length > 0) {
HOME.contentIdArray = ClientData.ReadingContentIds();
for (var nIndex = 0; nIndex < HOME.contentIdArray.length; nIndex++) {
if (HOME.contentIdArray[nIndex].contentid == outputId) {
checkflag = true;
break;
}
else {
checkflag = false;
}
}
//Renew ReadingContentID
var newArray = [];
ClientData.ReadingContentIds(newArray);
if (!checkflag) {
HOME.contentIdArray.push({ contentid: outputId, viewdate: '', originviewdate: '' });
}
}
else {
HOME.contentIdArray.push({ contentid: outputId, viewdate: '', originviewdate: '' });
}
//Set data for readingcontentid
ClientData.ReadingContentIds(HOME.contentIdArray);
//Renew ReadingContentID
var newArray = [];
ClientData.ReadingContentIds(newArray);
//Set ResouceVersion for content
COMMON.setResourceVersionData(outputId);
//Set data for readingcontentid
ClientData.ReadingContentIds(HOME.contentIdArray);
//Set MetaVersion for content
COMMON.setMetaVersionData(outputId);
//Set ResouceVersion for content
COMMON.setResourceVersionData(outputId);
//Set MetaVersion for content
COMMON.setMetaVersionData(outputId);
//Close Submenu
$('#dlgSubMenu').hide();
//Close Submenu
$('#dlgSubMenu').hide();
//Delete 'new' icon
HOME.drawEditImage(outputId);
//Delete 'new' icon
HOME.drawEditImage(outputId);
//Open content Detail
DETAIL.openContentDetail();
}
else {
//Open content Detail
DETAIL.openContentDetail();
}
else {
//Store Content id that user has read
if (ClientData.ReadingContentIds().length > 0) {
HOME.contentIdArray = ClientData.ReadingContentIds();
//Store Content id that user has read
if (ClientData.ReadingContentIds().length > 0) {
HOME.contentIdArray = ClientData.ReadingContentIds();
for (var nIndex = 0; nIndex < HOME.contentIdArray.length; nIndex++) {
if (HOME.contentIdArray[nIndex].contentid == outputId) {
checkflag = true;
if (HOME.contentIdArray[nIndex].viewdate == null || HOME.contentIdArray[nIndex].viewdate == 'undefined' || HOME.contentIdArray[nIndex].viewdate == '') {
HOME.contentIdArray[nIndex].viewdate = outputDate;
HOME.contentIdArray[nIndex].originviewdate = date;
}
break;
}
else {
checkflag = false;
for (var nIndex = 0; nIndex < HOME.contentIdArray.length; nIndex++) {
if (HOME.contentIdArray[nIndex].contentid == outputId) {
checkflag = true;
if (HOME.contentIdArray[nIndex].viewdate == null || HOME.contentIdArray[nIndex].viewdate == 'undefined' || HOME.contentIdArray[nIndex].viewdate == '') {
HOME.contentIdArray[nIndex].viewdate = outputDate;
HOME.contentIdArray[nIndex].originviewdate = date;
}
break;
}
if (!checkflag) {
HOME.contentIdArray.push({ contentid: outputId, viewdate: outputDate, originviewdate: date });
else {
checkflag = false;
}
}
else {
if (!checkflag) {
HOME.contentIdArray.push({ contentid: outputId, viewdate: outputDate, originviewdate: date });
}
}
else {
HOME.contentIdArray.push({ contentid: outputId, viewdate: outputDate, originviewdate: date });
}
//Renew ReadingContentID
var newArray = [];
ClientData.ReadingContentIds(newArray);
//Set data for readingcontentid
ClientData.ReadingContentIds(HOME.contentIdArray);
//Renew ReadingContentID
var newArray = [];
ClientData.ReadingContentIds(newArray);
//Set ResouceVersion for content
COMMON.setResourceVersionData(outputId);
//Set data for readingcontentid
ClientData.ReadingContentIds(HOME.contentIdArray);
//Set MetaVersion for content
COMMON.setMetaVersionData(outputId);
//Set ResouceVersion for content
COMMON.setResourceVersionData(outputId);
//$('body,html').animate({ scrollTop: 0 }, 0);
ClientData.IsRefresh(false);
//Set MetaVersion for content
COMMON.setMetaVersionData(outputId);
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage.
//For testing without other Type.
if(contentType == COMMON.ContentTypeKeys.Type_Others){
//Download content
HEADER.downloadResourceById(outputId);
// redraw content remove new icon
HOME.drawEditImage(outputId);
}
else if( contentType == COMMON.ContentTypeKeys.Type_Link ){
//link content
HEADER.viewLinkContentById(outputId);
// redraw content remove new icon
HOME.drawEditImage(outputId);
}
else{
//Go to Conten view page
avwScreenMove(COMMON.ScreenIds.ContentView);
}
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage.
//$('body,html').animate({ scrollTop: 0 }, 0);
ClientData.IsRefresh(false);
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : check for download content type other.
if(contentType == COMMON.ContentTypeKeys.Type_Others){
//Download content
HEADER.downloadResourceById(outputId);
// redraw content remove new icon
HOME.drawEditImage(outputId);
}
else if( contentType == COMMON.ContentTypeKeys.Type_Link ){
//link content
HEADER.viewLinkContentById(outputId);
// redraw content remove new icon
HOME.drawEditImage(outputId);
}
else{
//Go to Conten view page
avwScreenMove(COMMON.ScreenIds.ContentView);
}
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : check for download content type other.
}
};
......@@ -715,167 +612,84 @@ HOME.openSubMenuDialogFunction = function(e) {
var array = [e.clientX, e.clientY];
var contentid = $(this).attr('contentid');
if (HOME.isShowBookShelf != null) {
if (!HOME.isShowBookShelf) {
// Get image of selected image
var base64String = HOME.returnThumbnail(contentid);
ClientData.contentInfo_contentThumbnail(base64String);
ClientData.contentInfo_contentId(contentid);
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage.
var contentType = HOME.returnContentType(contentid);
ClientData.contentInfo_contentType(contentType);
//End Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage.
//Store Content id that user has read
if (ClientData.ReadingContentIds().length > 0) {
HOME.contentIdArray = ClientData.ReadingContentIds();
if (!HOME.isShowBookShelf) {
// Get image of selected image
var base64String = HOME.returnThumbnail(contentid);
ClientData.contentInfo_contentThumbnail(base64String);
ClientData.contentInfo_contentId(contentid);
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage.
var contentType = HOME.returnContentType(contentid);
ClientData.contentInfo_contentType(contentType);
//End Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage.
//Store Content id that user has read
if (ClientData.ReadingContentIds().length > 0) {
HOME.contentIdArray = ClientData.ReadingContentIds();
for (var nIndex = 0; nIndex < HOME.contentIdArray.length; nIndex++) {
if (HOME.contentIdArray[nIndex].contentid == contentid) {
checkflag = true;
break;
}
else {
checkflag = false;
}
for (var nIndex = 0; nIndex < HOME.contentIdArray.length; nIndex++) {
if (HOME.contentIdArray[nIndex].contentid == contentid) {
checkflag = true;
break;
}
if (!checkflag) {
HOME.contentIdArray.push({ contentid: contentid, viewdate: '', originviewdate: '' });
else {
checkflag = false;
}
}
else {
if (!checkflag) {
HOME.contentIdArray.push({ contentid: contentid, viewdate: '', originviewdate: '' });
}
//Renew ReadingContentID
var newArray = [];
ClientData.ReadingContentIds(newArray);
//Set data for readingcontentid
ClientData.ReadingContentIds(HOME.contentIdArray);
//Set ResouceVersion for content
COMMON.setResourceVersionData(contentid);
//Set MetaVersion for content
COMMON.setMetaVersionData(contentid);
//Close Submenu
$('#dlgSubMenu').hide();
//Delete 'new' icon
HOME.drawEditImage(contentid);
DETAIL.openContentDetail();
}
else if (HOME.isShowBookShelf) {
$('#dialog-read').attr('contentid', contentid);
$('#dialog-detail').attr('contentid', contentid);
//$("#dlgSubMenu").dialog({position: array, width: 130, height: 90});
$("#dlgSubMenu").show();
HOME.allowTimerCloseSubMenu = false;
$("#dlgSubMenu").position({ my: "left bottom",
at: "left-10 top",
of: this,
collision: "fit"
});
}
else {
$('#dialog-read').attr('contentid', contentid);
$('#dialog-detail').attr('contentid', contentid);
//$("#dlgSubMenu").dialog({position: array, width: 130, height: 90});
$("#dlgSubMenu").show();
HOME.allowTimerCloseSubMenu = false;
$("#dlgSubMenu").position({ my: "left bottom",
at: "left-10 top",
of: this,
collision: "fit"
});
HOME.contentIdArray.push({ contentid: contentid, viewdate: '', originviewdate: '' });
}
}
else {
if (!HOME.isShowBookShelf) {
// Get image of selected image
var base64String = HOME.returnThumbnail(contentid);
ClientData.contentInfo_contentThumbnail(base64String);
ClientData.contentInfo_contentId(contentid);
//Start Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage.
var contentType = HOME.returnContentType(contentid);
ClientData.contentInfo_contentType(contentType);
//End Function : No.12 -- Editor : Le Long -- Date : 07/31/2013 -- Summary : Add ContentType to Storage.
//Store Content id that user has read
if (ClientData.ReadingContentIds().length > 0) {
HOME.contentIdArray = ClientData.ReadingContentIds();
for (var nIndex = 0; nIndex < HOME.contentIdArray.length; nIndex++) {
if (HOME.contentIdArray[nIndex].contentid == contentid) {
checkflag = true;
break;
}
else {
checkflag = false;
}
}
//Renew ReadingContentID
var newArray = [];
ClientData.ReadingContentIds(newArray);
if (!checkflag) {
HOME.contentIdArray.push({ contentid: contentid, viewdate: '', originviewdate: '' });
}
}
else {
HOME.contentIdArray.push({ contentid: contentid, viewdate: '', originviewdate: '' });
}
//Renew ReadingContentID
var newArray = [];
ClientData.ReadingContentIds(newArray);
//Set data for readingcontentid
ClientData.ReadingContentIds(HOME.contentIdArray);
//Set data for readingcontentid
ClientData.ReadingContentIds(HOME.contentIdArray);
//Set ResouceVersion for content
COMMON.setResourceVersionData(contentid);
//Set ResouceVersion for content
COMMON.setResourceVersionData(contentid);
//Set MetaVersion for content
COMMON.setMetaVersionData(contentid);
//Set MetaVersion for content
COMMON.setMetaVersionData(contentid);
//Close Submenu
$('#dlgSubMenu').hide();
//Close Submenu
$('#dlgSubMenu').hide();
//Delete 'new' icon
HOME.drawEditImage(contentid);
//Delete 'new' icon
HOME.drawEditImage(contentid);
DETAIL.openContentDetail();
DETAIL.openContentDetail();
}
else if (HOME.isShowBookShelf) {
$('#dialog-read').attr('contentid', contentid);
$('#dialog-detail').attr('contentid', contentid);
//$("#dlgSubMenu").dialog({position: array, width: 130, height: 90});
$("#dlgSubMenu").show();
HOME.allowTimerCloseSubMenu = false;
$("#dlgSubMenu").position({ my: "left bottom",
at: "left-10 top",
of: this,
collision: "fit"
});
}
else {
$('#dialog-read').attr('contentid', contentid);
$('#dialog-detail').attr('contentid', contentid);
//$("#dlgSubMenu").dialog({position: array, width: 130, height: 90});
$("#dlgSubMenu").show();
HOME.allowTimerCloseSubMenu = false;
$("#dlgSubMenu").position({ my: "left bottom",
at: "left-10 top",
of: this,
collision: "fit"
});
}
}
else if (HOME.isShowBookShelf) {
$('#dialog-read').attr('contentid', contentid);
$('#dialog-detail').attr('contentid', contentid);
//$("#dlgSubMenu").dialog({position: array, width: 130, height: 90});
$("#dlgSubMenu").show();
HOME.allowTimerCloseSubMenu = false;
$("#dlgSubMenu").position({ my: "left bottom",
at: "left-10 top",
of: this,
collision: "fit"
});
}
else {
$('#dialog-read').attr('contentid', contentid);
$('#dialog-detail').attr('contentid', contentid);
//$("#dlgSubMenu").dialog({position: array, width: 130, height: 90});
$("#dlgSubMenu").show();
HOME.allowTimerCloseSubMenu = false;
$("#dlgSubMenu").position({ my: "left bottom",
at: "left-10 top",
of: this,
collision: "fit"
});
}
};
......@@ -1780,104 +1594,43 @@ HOME.renderContent = function(id, text, division, type, order, from, to, cateid,
var outputDate = COMMON.formatDeliveryDate(post.contentDeliveryDate);
if (HOME.isShowBookShelf == null) {
if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_BookShelf) {
$('#content-grid').append(
'<section class="sectionhomebookshelf" id="bookshelf' + post.contentId + '">'
+ ' <div class="cnt_section_bookshelf">'
+ ' <div class="img">'
+ ' <canvas height="150" width="150" id="content-thumbnail' + post.contentId + '" contentid="' + post.contentId + '" style="display:none;">'
+ ' </canvas>'
+ ' </div>'
+ ' <img id="loadingIcon' + post.contentId + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding: 86px; "/>'
+ ' </div>'
+ ' <a id="title' + post.contentId + '" class="dialog name lang" lang="lblTitle" contentid="' + post.contentId + '">'
+ ' <img src="' + HEADER.getIconTypeContent(post.contentType)+'" width="20" height="20">'
+ COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 20)
+ ' </a>'
+ '</section>'
);
if ((HOME.home_realTotalRecord + i + 1) % 3 == 0) {
$('#bookshelf' + post.contentId).addClass('no_m_right');
}
HOME.getNextRecordNumForBookShelf();
}
// else if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_List) {
else if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_List) {
$('#content-grid').append(
'<section class="sectionhomelist">'
+ ' <div class="cnt_section_list">'
+ ' <a class="img">'
+ ' <canvas height="110" width="150" id="content-thumbnail' + post.contentId + '" contentid="' + post.contentId + '" style="display:none;">'
+ ' </canvas>'
+ ' <img id="loadingIcon' + post.contentId + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding: 46px; "/>'
+ ' </a>'
+ ' <div class="text">'
+ ' <a id="title' + post.contentId + '" class="name dialog" contentid="' + post.contentId + '">'
+ ' <img class="listIcon" src="' + HEADER.getIconTypeContent(post.contentType)+'" width="20" height="20">'
+ COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 20)
+ ' </a>'
+ ' <div class="info">'
+ ' <ul class="date">'
+ ' <li><span class="lang" lang="txtPubDt"> </span> : ' + outputDate + '</li>'
+ ' <li><span class="lang" lang="txtViewDt"> </span>:<span id="lblVdate' + post.contentId + '"> </span></li>'
+ ' </ul>'
+ ' <ul class="pic">'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>'
+ ' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">読む</a></li>'
+ ' </ul>'
+ ' </div>'
+ ' </div>'
+ ' </div>'
+ '</section>'
);
HOME.getNextRecordNumForList();
}
else {
}
} else {
// if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_BookShelf) {
if (HOME.isShowBookShelf) {
$('#content-grid').append(
// if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_BookShelf) {
if (HOME.isShowBookShelf) {
$('#content-grid').append(
'<section class="sectionhomebookshelf" id="bookshelf' + post.contentId + '">'
+ ' <div class="cnt_section_bookshelf">'
+ ' <div class="img">'
+ ' <canvas height="150" width="150" id="content-thumbnail' + post.contentId + '" contentid="' + post.contentId + '" style="display:none;">'
+ ' </canvas>'
+ ' </div>'
+ ' <img id="loadingIcon' + post.contentId + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding: 86px; "/>'
+ ' <img id="loadingIcon' + post.contentId + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding: 86px; "/>'
+ ' </div>'
+ ' <a id="title' + post.contentId + '" class="dialog name lang" lang="lblTitle" contentid="' + post.contentId + '">'
+ ' <img src="' + HEADER.getIconTypeContent(post.contentType)+'" width="20" height="20">'
+ COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 20)
+ ' </a>'
+ ' <a id="title' + post.contentId + '" class="dialog name lang" lang="lblTitle" contentid="' + post.contentId + '">'
+ ' <img src="' + HEADER.getIconTypeContent(post.contentType)+'" width="20" height="20">'
+ COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 20)
+ ' </a>'
+ '</section>'
);
if ((HOME.home_realTotalRecord + i + 1) % 3 == 0) {
$('#bookshelf' + post.contentId).addClass('no_m_right');
}
HOME.getNextRecordNumForBookShelf();
}
// else if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_List) {
else if (!HOME.isShowBookShelf) {
$('#content-grid').append(
'<section class="sectionhomelist">'
);
if ((HOME.home_realTotalRecord + i + 1) % 3 == 0) {
$('#bookshelf' + post.contentId).addClass('no_m_right');
}
HOME.getNextRecordNumForBookShelf();
}
// else if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_List) {
else if (!HOME.isShowBookShelf) {
var gridHtml = '<section class="sectionhomelist">'
+ ' <div class="cnt_section_list">'
+ ' <a class="img">'
+ ' <canvas height="110" width="150" id="content-thumbnail' + post.contentId + '" contentid="' + post.contentId + '" style="display:none;">'
+ ' </canvas>'
+ ' <img id="loadingIcon' + post.contentId + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding: 46px; "/>'
+ ' <img id="loadingIcon' + post.contentId + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding: 46px; "/>'
+ ' </a>'
+ ' <div class="text">'
+ ' <a id="title' + post.contentId + '" class="dialog name lang" lang="lblTitle" contentid="' + post.contentId + '">'
+ ' <img class="listIcon" src="' + HEADER.getIconTypeContent(post.contentType)+'" width="20" height="20">'
+ COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 20)
+ ' </a>'
+ ' <a id="title' + post.contentId + '" class="dialog name lang" lang="lblTitle" contentid="' + post.contentId + '">'
+ ' <img class="listIcon" src="' + HEADER.getIconTypeContent(post.contentType)+'" width="20" height="20">'
+ COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 20)
+ ' </a>'
+ ' <div class="info">'
+ ' <ul class="date">'
+ ' <li><span class="lang" lang="txtPubDt"> </span> : ' + outputDate + '</li>'
......@@ -1886,19 +1639,22 @@ HOME.renderContent = function(id, text, division, type, order, from, to, cateid,
+ ' <ul class="pic">'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>'
+ ' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">読む</a></li>'
+ ' <li><ul class="iconList">{share}<li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">読む</a></li></ul></li>'
+ ' </ul>'
+ ' </div>'
+ ' </div>'
+ ' </div>'
+ '</section>'
);
HOME.getNextRecordNumForList();
}
else {
}
+ '</section>';
var shareHtml = "";
if( post.readerShare == '1' ){
shareHtml ='<li><a class="read lang button-share" contentid="' + post.contentId + '" lang="txtShare">共有</a></li>';
}
gridHtml = gridHtml.replace(/\{share\}/g, shareHtml);
$('#content-grid').append(gridHtml);
HOME.getNextRecordNumForList();
}
//assign thumbnail to array
......@@ -2742,7 +2498,6 @@ HOME.setDefaultViewMode = function() {
if (ClientData.sortOpt_viewMode() == COMMON.Consts.ConstDisplayMode_BookShelf) {
HOME.isShowBookShelf = true;
//Start : Apply new css - Editor: Long - Date : 09/03/2013 - Summary : For handle view mode icon
$('body').attr('id', 'bookshelf');
......@@ -2787,3 +2542,32 @@ HOME.removeHoverCss = function() {
}
};
//Dialog Read Button CLick
HOME.showContentShareDlgFunction = function(e) {
if (e) {
e.preventDefault();
}
if (HOME.home_isMove == true) {
HOME.home_isMove = false;
return;
}
var contentId = $(this).attr('contentid');
// check limit of content
checkLimitContent(contentId,
function()
{
SHARE.contentId = contentId;
SHARE.contentTitle = "";
SHARE.openContentShare();
},
function(){
//console.log("checkLimitContent_bbb");
}
);
};
/// コンテンツ共有画面
//名前空間用のオブジェクトを用意する
var SHARE = {};
SHARE.contentId = "";
SHARE.contentTitle = "";
// Init function of page
$(document).ready(function () {
//カレンダー表示
rome(dlgContentShare_validStartDate, { time: false });
rome(dlgContentShare_validEndDate, { time: false });
$('#dlgContentShare').prop('title', I18N.i18nText('txtShare'));
$('#dlgContentShare').dialog( {
open: function() {
$('#dlgContentShare_error').hide();
$('#dlgContentShare_input').show();
$('#dlgContentShare_result').hide();
//OKボタンの有効化
$(":button:contains('Ok')").prop("disabled", false).removeClass("ui-state-disabled");
},
close: function() {
//flag = false;
},
autoOpen: false,
modal: true,
width: 370,
buttons: {
"Ok": function() {
//submitForm();
SHARE.sendContentShare();
},
"Cancel": function() {
$( this ).dialog( "close" );
}
}
});
});
// Show content detail
SHARE.openContentShare = function() {
//alert("SHARE.contentId:" + SHARE.contentId);
$('#dlgContentShare').dialog( 'open' );
return false;
};
//Show content detail
SHARE.closeContentShare = function() {
$('#dlgContentShareUrl').dialog( 'close' );
};
SHARE.sendContentShare = function() {
var validStartDate = $('#dlgContentShare_validStartDate').val();
var validEndDate = $('#dlgContentShare_validEndDate').val();
var maxDlCount = $('#dlgContentShare_maxDlCount').val();
var password = $('#dlgContentShare_password').val();
var validStartDateParam
var validEndDateParam
if(validStartDate != ''){
validStartDateParam = validStartDate + " 00:00:00";
}
if(validEndDate != ''){
validEndDateParam = validEndDate + " 23:59:59";
}
console.log("validStartDate:" + validStartDateParam);
console.log("validEndDate:" + validEndDateParam);
console.log("maxDlCount:" + maxDlCount);
console.log("password:" + password);
var params = {
sid: ClientData.userInfo_sid(),
contentId: SHARE.contentId,
validStartDate: validStartDateParam,
validEndDate: validEndDateParam,
maxDlCount: maxDlCount,
password: password
};
// Get content detail
avwCmsApi(ClientData.userInfo_accountPath(), "getReaderShareUrl", "POST", params,
function (data) {
if( data.httpStatus == '200' ){
$('#dlgContentShare_error').hide();
$('#dlgContentShare_input').hide();
$('#dlgContentShare_resultUrl').text(data.url);
var mailto = 'mailto:?subject=コンテンツを共有しました&body=コンテンツを共有しました。%0D%0A%0D%0A共有URL:%0D%0A' + data.url + '%0D%0A%0D%0A';
if( password != '' ){
mailto = mailto + "password:" + password + '%0D%0A%0D%0A';
}
if( validStartDate != '' || validEndDate != '' ){
mailto = mailto + "有効期間:" + validStartDate + "-" + validEndDate + '%0D%0A%0D%0A';
}
$('#dlgContentShare_resultMl').attr("href",mailto);
$('#dlgContentShare_resultFb').click(function () {
var fbUrl="https://www.facebook.com/sharer.php?u=" + data.url + "&amp;t=test";
window.open(encodeURI(decodeURI(fbUrl)),
'sharewindow',
'width=550, height=450, personalbar=0, toolbar=0, scrollbars=1, resizable=1'
);
return false;
});
$('#dlgContentShare_resultTw').click(function () {
var twUrl="http://twitter.com/intent/tweet?text=&amp;url=" + data.url + "&amp;via=Agentec_now";
window.open(encodeURI(decodeURI(twUrl)),
'sharewindow',
'width=550, height=450, personalbar=0, toolbar=0, scrollbars=1, resizable=1'
);
return false;
});
if( password != '' ){
$('#dlgContentShare_resultPassword').show();
$('#dlgContentShare_resultPassword').text("Password:" + password);
} else {
$('#dlgContentShare_resultPassword').hide();
}
if( validStartDate != '' || validEndDate != '' ){
$('#dlgContentShare_resultDeliveryTerm').show();
$('#dlgContentShare_resultDeliveryTerm').text("有効期間:" + validStartDate + "-" + validEndDate);
} else {
$('#dlgContentShare_resultDeliveryTerm').hide();
}
//結果表示
$('#dlgContentShare_result').show();
//OKボタンの無効化
$(":button:contains('Ok')").prop("disabled", true).addClass("ui-state-disabled");
} else {
$('#dlgContentShare_error').show();
$('#dlgContentShare_error').html(data.errorMessage + "</br></br>");
}
},
function (xhr, statusText, errorThrown) {
if (xhr.responseText && xhr.status != 0) {
var xhrData = JSON.parse(xhr.responseText);
$('#dlgContentShare_error').show();
$('#dlgContentShare_error').html(xhrData.loginErrorMessage + "</br></br>");
}
else {
showSystemError();
}
}
);
};
......@@ -119,6 +119,8 @@
</script>-->
</header>
<div id="inc_backup"></div>
<div class="wrapper">
<div id="main">
<article>
......@@ -207,26 +209,6 @@
</p>
</section>
<section class="sectionbackup_logout" id="dlgConfirmBackup1">
<h1><label class="lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
<p class="message"><label lang="txtLogoutBkMsg" class="lang"><!--ログアウトする前にバックアップしますか?--></label></p>
<p class="message-options">
<label class="option_backup">
<label lang="txtBkSelectData" class="lang"><!--バックアップするデータを選択してください。--></label><br />
<input type="checkbox" id="chkBkAllMarking" class="chkbx" checked="checked" /><label for="chkBkAllMarking" lang="txtBkMarking" class="lang"><!--マーキング--></label>
<input type="checkbox" id="chkBkAllMemo" class="chkbx" checked="checked" /><label for="chkBkAllMemo" lang="txtBkMemo" class="lang"><!--メモ--></label>
<input type="checkbox" id="chkBkAllShiori" class="chkbx" checked="checked" /><label for="chkBkAllShiori" lang="txtBkShiori" class="lang"><!--しおり--></label>
</label>
</p>
<p class="notice">
<input type="checkbox" id="chkRememberBackup" /><label for="chkRememberBackup" class="lang" lang="txtLogoutOptBkCfm"><!--今回の行動を記憶し、次回から確認せずに、同じことをする。--></label>
</p>
<p class="backupbtn">
<a class="cancel lang" href="#" lang="dspBkCancel" id="dlgConfirmBackup-withoutbackup"><!--バックアップしないでログアウト--></a>
<a class="ok lang" href="#" id="dlgConfirmBackup-backup" lang="dspBkOK"><!--バックアップしてログアウト--></a>
</p>
</section>
<section class="sectionbackup" id="dlgConfirmBackup">
<h1><label class="title lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment