intra-mart Accel Platform テーマ仕様書 第9版 2021-08-01

テーマモジュールのサンプル

設定ファイル

message

src/main/conf/message/platform/theme/sample_theme/caption.properties

1
2
    CAP.Z.IWP.THEME.SAMPLE_THEME.NAME=Sample Theme
    CAP.Z.IWP.THEME.SAMPLE_THEME.DESCRIPTION=This is sample theme.
caption_en.properties, caption_ja.properties, caption_zh_CN.properties も同じ内容です。

sample_theme.xml

src/main/conf/theme-config/sample_theme.xml

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
    <?xml version="1.0" encoding="UTF-8"?>
    <theme-config
      xmlns="http://www.intra-mart.jp/theme/theme"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://www.intra-mart.jp/theme/theme ../../schema/theme.xsd ">
      <theme
        id="sample_theme"
        author="intra-mart"
        version="8.0"
        imagepath="ui/theme/sample_theme/images/thumbnail.png"
        theme-folder="theme/sample_theme"
        sortkey="0">
        <client-type-info
          id="pc"
          default="false"/>
        </theme>
    </theme-config>

JSSP

body

src/main/jssp/src/theme/sample_theme/body.html

1
2
3
4
5
    <div id="imui-container">

        <imart type="replaceContents"></imart>

    </div>

src/main/jssp/src/theme/sample_theme/body.js

1
function init(){}

CSS

parameter.less

src/main/public/ui/theme/sample_theme/css/theme/parameter.less

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/* テーマの標準的な色のカラーコード */
@theme-color:#005678;

/* テーマの標準的な暗い色のカラーコード */
@theme-dark-color:#444444;

/* テーマの標準的な文字色のカラーコード */
@base-text:#333333;

/* テーマの標準的な色を背景色としたときの文字色のカラーコード */
@accent-text:#ffffff;

/* グローバルナビの左端からの位置 */
@global-navigation-position-left: 158px;

/* ボタンのハイライトのカラーコード */
@button-high-base:#050505;

/* ボタンのボーダーのカラーコード */
@button-border-color:#aaaaaa;

/* ツールバーの高さ */
@toolbar-height:27px;

/* グローバルナビの高さ */
@nav-global-height:42px;

@theme-header-color-start:@theme-header-color;
@theme-header-color-end:darken(@theme-header-color-start, 10%);
@theme-header-colorstop:100%;
@theme-header-color-type:linear;

header.less

src/main/public/ui/theme/sample_theme/css/theme/header.less

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
#logo {
  position: relative;
  top: 5px;
}

#imui-user-utility {
  position: relative;
  top: 10px;
  > li.imui-nav-global-pulldown {
    > a {
      &.ui-state-active {
        > span.ui-button-text {
          color: #333333;
        }
      }
      > span.ui-button-text {
        color: #ffffff;
      }
    }
  }
}

#imui-nav-global-search-wrapper {
  position: relative;
  top: 13px;
  form {
    float: left;
  }
  > li.imui-nav-global-search {
    > a {
      > span {
        float: right;
        margin: 3px;
      }
    }
  }
}

/* IM-Launcher area */
#imui-nav-global-laucher-wrapper {
  margin-top: 4px;
  .imui-nav-global-launcher{
    margin-left:8px;
    .action{
      z-index: 1000;
      position:relative;
    }
  }
  .imui-nav-global-launcher.active{
    position:relative;
    /* IM-Launcher area box */
    .imui-box-launcher{
      position:absolute;
      top:5px;
      right:20px;
      width:830px;
      z-index:999;
      padding:30px 0 0 30px;
      background: rgb(0,0,0);
      background: rgba(0,0,0,0.8);
      .theme-border-radius(10px, 10px, 10px, 10px);
      .theme-box-shadow(0px, 3px, 10px, #333333);
      a{
        display:block;
        overflow:hidden;
      }
      .imui-list-launcher{
        margin-left:5px;
        margin-bottom:20px;
        li{
          float:left;
          text-align:center;
          padding:0 10px 0 0;
          height:80px;
          width:80px;
          a {
            span.imui-list-launcher-label{
              display:block;
              font-size:75%;
              text-decoration:none;
              padding:2px 10px;
              background:#000000;
              width:60px;
              overflow:hidden;
              white-space: normal;
              word-wrap: break-word;
              word-break: break-all;
              color:@theme-header-accent-text-color;
              .theme-border-radius(10px, 10px, 10px, 10px);
            }
            span.imui-list-launcher-info{
              margin-left:140px;
              width:500px;
            }
          }
        }
      }
      .imui-btn-launcher-back{
        position:absolute;
        left:10px;
        top:28px;
        border:1px solid #888888;
        .theme-border-radius(3px, 3px, 3px, 3px);
        a{
          line-height:50px;
        }
      }
      .imui-btn-launcher-add{
        position:absolute;
        right:68px;
        bottom:4px;
        .theme-border-radius(3px, 3px, 3px, 3px);
      }
      .imui-btn-launcher-settings{
        position:absolute;
        right:38px;
        bottom:4px;
        .theme-border-radius(3px, 3px, 3px, 3px);
      }
      .imui-btn-launcher-close{
        position:absolute;
        right:7px;
        bottom:7px;
        padding:0px 1px;
        border:1px solid #888888;
        .theme-border-radius(3px, 3px, 3px, 3px);
      }
    }
  }
}

#imui-header{
  color: @accent-text;
  background-color: @theme-color;
  /* nav-global */
  #imui-nav-global{
    height:@nav-global-height;
    border-bottom:3px solid desaturate(darken(@theme-header-color, 22%),10%);
    .theme-gradient(@theme-header-color-type; @theme-header-color-start; @theme-header-color-end; @theme-header-colorstop);
    .theme-gradient-filter(@theme-header-color-type; @theme-header-color-start; @theme-header-color-end; @theme-header-colorstop);
    /* nav-global(wrap) */
    .imui-nav-global-wrap{
      position:relative;
      min-width:960px;
      margin:0 10px;
      height:@nav-global-height;
    }
  }
}
.imui-triangle-right {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 6px solid #EEE;
  position: absolute;
  top: 6px;
  right: 3px;
}
.imui-triangle-down {
  width: 0;
  height: 0;
  border-top: 6px solid #EEE;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

footer.less

src/main/public/ui/theme/sample_theme/css/theme/footer.less

1
2
3
4
5
6
7
8
9
footer {
  background-color: #000;
  height: 100px;
  margin-top: 20px;
  text-align: center;
  img {
    margin-top: 24px;
  }
}

CSJS

src/main/public/ui/theme/sample_theme/js/theme.js

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
/*
 * 検索ボックス
 */
(function($) {
    $.widget("imui.imuiSearchBox", {
        active: false,
        _create: function() {
            var self = this;

            var form = $(this.element).find('form');
            var trigger = $(this.element).find('li.imui-nav-global-search');
            self.formArea = form;
            self._close();
            trigger.children('a').bind('click', function() {
                if (self.active) {
                    self._close();
                    this.focus();
                } else {
                    self._open();
                    self.formArea.find('.imui-form-global-search-input').focus();
                }
                return false;
            });
            form.bind('submit', function() {
                if (self.active) {
                    self._close();
                }
            });
        },
        _open: function() {
            this.active = true;
            $(this.element.children('li')).addClass('active');
            this.formArea.show();
        },
        _close: function() {
            this.active = false;
            $(this.element.children('li')).removeClass('active');
            this.formArea.hide();
        }
    });

    $.widget("imui.imuiMenuItem", {
        defaultElement: "<ul>",
        delay: 150,
        options: {
            iconClass: null,
            position: {
                my: "left top",
                at: "right top",
                collision: 'flip none'
            }
        },
        _create: function() {
            var self = this;
            this.activeMenu = this.element;
            this.element
              .addClass( "imui-menu ui-widget ui-widget-content" )
              .attr({
                id: this.menuId,
                role: "menu"
            })
            .bind( "mouseover.imuiMenuItem", function( event ) {
                if ( self.options.disabled ) {
                    return;
                }
                clearTimeout($.data(self.options.root.element, 'imui_dropdown_menu.closeAllTimer'));
                var target = $( event.target ).closest( ".imui-menu-item" );
                if ( target.length ) {
                    self.focus( event, target );
                }
            })
            .bind("mouseout.imuiMenuItem", function( event ) {
                if ( self.options.disabled ) {
                    return;
                }
                clearTimeout($.data(self.options.root.element, 'imui_dropdown_menu.closeAllTimer'));
                var timer = setTimeout(function() {
                  self.closeAll();
                  self.options.root._close();
                }, 500);
                $.data(self.options.root.element, 'imui_dropdown_menu.closeAllTimer', timer);
                var target = $( event.target ).closest( ".imui-menu-item" );
                if ( target.length ) {
                    self.blur( event );
                }
            })
            .find('a')
                .each(function() {
                    var anchor = $(this);
                    var iconClassName = anchor.data('iconClass') || self.options.iconClass;
                    if (anchor.data('icon')) {
                        anchor.prepend(
                            $('<span class="imui-menu-item-icon"/>')
                                .css('background-image', 'url(' + anchor.data('icon') + ')')
                        );
                    } else if (iconClassName) {
                        anchor.prepend(
                            $('<span class="imui-menu-item-icon"/>')
                                .addClass(iconClassName)
                        );
                    }
                    if ($(anchor).next('ul').length == 0) {
                        anchor.bind('click', function() {
                            self.closeAll();
                            self.options.root._close();
                        });
                    }
                })
                .end()
            .imuiScrollMenu({
                position: this.options.position
            })
            .find('ul')
                .imuiScrollMenu({position: this.options.position});

            this.refresh();
        },
        refresh: function() {
            var self = this;
            // initialize nested menus
            var submenus = this.element.find("ul:not(.imui-menu)")
            .addClass( "imui-menu ui-widget ui-widget-content" )
            .attr("role", "menu")
            .hide();

            // don't refresh list items that are already adapted
            var items = submenus.add(this.element).children( "li:not(.imui-menu-item):has(a)" )
            .addClass( "imui-menu-item" )
            .attr( "role", "presentation" );

            items.children( "a" )
            .addClass( " ui-state-default" )
            .attr( "tabIndex", -1 )
            .attr( "role", "menuitem" );

            items.children('a').each(function() {
                var html = $(this).html();
                $(this).empty().append($('<span class="imui-menu-item-label"/>').wrapInner(html));
            });

            submenus.each(function() {
                var menu = $(this);
                var item = menu.prev("a");
                item.attr("aria-haspopup", "true")
                .prepend('<div class="imui-triangle-right"></div>');
            });
        },
        focus: function( event, item ) {
            var self = this;

            this.blur();

            if ( this._hasScroll() ) {
                var borderTop = parseFloat( $.curCSS( this.element[0], "borderTopWidth", true) ) || 0,
                paddingTop = parseFloat( $.curCSS( this.element[0], "paddingTop", true) ) || 0,
                offset = item.offset().top - this.element.offset().top - borderTop - paddingTop,
                scroll = this.element.scrollTop(),
                elementHeight = this.element.height(),
                itemHeight = item.height();
                if ( offset < 0 ) {
                    this.element.scrollTop( scroll + offset );
                } else if ( offset + itemHeight > elementHeight ) {
                    this.element.scrollTop( scroll + offset - elementHeight + itemHeight );
                }
            }

            this.active = item.first()
            .children( "a" )
            .addClass( "ui-state-focus" )
            .end();

            // highlight active parent menu item, if any
            this.active.parent().closest(".imui-menu-item").children("a:first").addClass("ui-state-active");

            self.timer = setTimeout(function() {
                self._close();
            }, self.delay)
            var nested = $(">ul", item);
            if (nested.length && /^mouse/.test(event.type)) {
                self._startOpening(nested);
            }
            this.activeMenu = item.parent();

            this._trigger( "focus", event, { item: item } );
        },
        blur: function(event) {
            if (!this.active) {
                return;
            }

            clearTimeout(this.timer);

            this.active.children( "a" ).removeClass( "ui-state-focus" );
            this.active = null;
        },
        _startOpening: function(submenu) {
            clearTimeout(this.timer);
            var self = this;
            self.timer = setTimeout(function() {
                self._close();
                self._open(submenu);
            }, self.delay);
        },

        _open: function(submenu) {
            clearTimeout(this.timer);
            this.element.find(".imui-menu").not(submenu.parents()).hide().attr("aria-hidden", "true");
            /*
            var position = $.extend({}, {
                of: this.active
            }, $.type(this.options.position) == "function"
            ? this.options.position(this.active)
            : this.options.position
            );
            submenu.show().removeAttr("aria-hidden").attr("aria-expanded", "true").position(position);
            */
            submenu.width(submenu.width());
            submenu
                .show()
                .removeAttr("aria-hidden")
                .attr("aria-expanded", "true")
                .css('opacity', 0)
                .imuiScrollMenu('adjust',$.extend(this.options.position, {of: submenu.parent().parent()}))
                .css('opacity', 1);
        },

        closeAll: function() {
            this.element
            .find("ul").hide().attr("aria-hidden", "true").attr("aria-expanded", "false").end()
            .find("a.ui-state-active").removeClass("ui-state-active");
            this.blur();
            this.activeMenu = this.element;
        },

        _close: function() {
            this.active.parent()
            .find("ul").hide().attr("aria-hidden", "true").attr("aria-expanded", "false").end()
            .find("a.ui-state-active").removeClass("ui-state-active");
        },
        _hasScroll: function() {
            // TODO: just use .prop() when we drop support for jQuery older than 1.6
            return this.element.height() < this.element[ $.fn.prop ? "prop" : "attr" ]( "scrollHeight" );
        },
        select: function( event ) {
            // save active reference before closeAll triggers blur
            var ui = {
                item: this.active
            };
            this.closeAll();
            this._trigger( "select", event, ui );
        },
        destroy: function() {
            this.element
                .removeAttr('aria-activedescendant')
                .find('.imui-menu')
                    .andSelf()
                        .removeClass('imui-menu ui-widget ui-widget-content ')
                        .removeAttr('role')
                        .removeAttr('tabIndex')
                        .removeAttr('aria-labelledby')
                        .removeAttr('aria-expanded')
                        .removeAttr('aria-hidden')
                        .show();

            this.element.find('.imui-menu-item')
                .unbind('.imuiMenuItem')
                .removeClass('imui-menu-item')
                .removeAttr('role')
                .children('a')
                    .removeClass('ui-state-hover')
                    .removeAttr('tabIndex')
                    .removeAttr('role')
                    .removeAttr('aria-haspopup')
                    .removeAttr('id')
                    .children('.ui-icon')
                        .remove();

            $.Widget.prototype.destroy.call(this);
        }
    });
    $.widget("imui.imui_dropdown_menu",{
        options: {
            iconClass: null,
            menuBarClass: '',//'imui-nav-global-list imui-menubar ui-widget-header ui-helper-clearfix',
            menuBarItemClass: '',//'imui-menubar-item',
            activeForIE8: null
        },
        _create: function() {
            // this will be ul
            var that = this;
            // items will be toplevel li
            var items = this.items = this.element.children('li')
                .addClass(that.options.menuBarItemClass)
                .children('a');
            // let only the first item receive focus
            items.slice(1).attr( "tabIndex", -1 );

            //this.element.addClass("imui-menubar ui-widget-header ui-helper-clearfix");
            this.element.addClass(this.options.menuBarClass);

            items.each(function() {
                var anchor = $(this);
                anchor
                    .bind('mouseenter.imui_dropdown_menu', function(event) {
                        anchor.addClass('ui-state-hover');
                    })
                    .bind('mouseleave.imui_dropdown_menu', function(event) {
                        anchor.removeClass('ui-state-hover');
                    })
                    .bind('click.imui_dropdown_menu', function(event) {
                        if (anchor.next('ul').size() == 0) {
                            that._trigger('select', event, {item: anchor.closest('li')});
                        }
                    });
            });

            items.next('ul')
              .imuiMenuItem({
                  select: function( event, ui ) {
                      ui.item.parents( "ul.imui-menu:last" ).hide();
                      that._trigger( "select", event, ui );
                      that._close();
                      // TODO what is this targetting? there's probably a better way to access it
                      $(event.target).prev().focus();
                  },
                  iconClass: this.options.iconClass,
                  root: this
              })
              .hide();

            items.each(function() {
                var input = $(this),
                    menu = input.next('ul');

                input.bind("click.imui_dropdown_menu focus.imui_dropdown_menu mouseenter.imui_dropdown_menu mouseleave.imui_dropdown_menu", function(event) {
                    // ignore triggered focus event
                    if ( event.type == "focus" && !event.originalEvent ) {
                        return;
                    }
                    //サブメニューがないメニューは、eventをそのまま続行
                    if ($(this).next('ul').length != 0) {
                        event.preventDefault();
                    }
                    if ( event.type == "click" && menu.is( ":visible" ) && that.activeMenu && that.activeMenu[0] == menu[0] ) {
                        that._close();
                        return;
                    }
                    if ( ( that.open && event.type == "mouseenter" ) || event.type == "click" ) {
                        that._open( event, menu );
                    }
                    if (event.type == 'mouseenter') {
                      clearTimeout($.data(that, 'imui_dropdown_menu.closeAllTimer'));
                      that._open(event, menu);
                      return;
                    }
                    if (event.type == 'mouseleave' && menu.is(':visible')) {
                      clearTimeout($.data(that.element, 'imui_dropdown_menu.closeAllTimer'));
                      var timer = setTimeout(function() {
                        that._close();
                      }, 500);
                      $.data(that.element, 'imui_dropdown_menu.closeAllTimer', timer);
                      return;
                    }
                })
                .addClass('ui-button ui-widget ui-button-text-only imui-menubar-link')
                .wrapInner( "<span class='ui-button-text'></span>" )
                .removeClass( "ui-button-text-only" ).addClass( "ui-button-text-icon-secondary" );

                //for IE8
                if (input.width() > input.children().outerWidth(true)) {
                    input.width(input.children().outerWidth(true));
                }

                //サブメニューがある場合は、下向き三角アイコンを追加
                if (input.next('ul').length != 0) {
                    input.prepend('<div class="imui-triangle-down" style="position: absolute;top: 10px;right: .5em;"></div>');
                }
            });

            $(that.element).each(function(event){
                $(this).bind('focusin.imui_dropdown_menu', function(event) {
                    clearTimeout(that.closeTimer);
                });
                $(this).bind('focusout.imui_dropdown_menu', function(event) {
                    that.closeTimer = setTimeout(function() {
                        that._close(event);
                    }, 100);
                });
            });
        },
        _close: function(event, menu) {
            if (!this.activeMenu || !this.activeMenu.length ) {
                //for IE8
                if ($.data(this.element, 'imui_dropdown_menu.active') != null) {
                    this.activeMenu = $.data(this.element, 'imui_dropdown_menu.active');
                } else {
                    return;
                }
            }
            this.element.children('li').removeClass('active');
            this.activeMenu
              .imuiMenuItem("closeAll")
              .hide();
            this.activeMenu
              .prev()
              .removeClass("ui-state-active")
              .removeAttr("tabIndex");
            this.activeMenu = null;
            this.open = false;

            //for IE8
            this.options.activeForIE8 = null;
            $.removeData(this.element, 'imui_dropdown_menu.active');
        },
        _open: function(event, menu) {
            var that = this;
            if (menu.length == 0) {
                return;
            }
            if ( this.activeMenu && this.activeMenu[0] == menu[0] ) {
                //for IE8
                if (this.options.activeForIE8 != null) {
                    this.activeMenu = this.options.activeForIE8;
                } else {
                    return;
                }
            }
            this.element.children('li').addClass('active');
            if (this.activeMenu) {
                this.activeMenu
                  .imuiMenuItem("closeAll")
                  .hide();
                this.activeMenu
                  .prev()
                  .removeClass("ui-state-active");
            }
            var button = menu.prev().addClass("ui-state-active");
            menu.width(menu.width());
            if (menu.width() < menu.parent().width()) {
                menu.width(menu.parent().width());
            }
            this.activeMenu = menu
                .show()
                .css('opacity', 0)
                .imuiScrollMenu('adjust', {
                    collision: 'flip none',
                    my: 'right top',
                    at: 'right bottom',
                    of: button
                }, true)
                .css('opacity', 1);

            //for IE8
            this.options.activeForIE8 = this.activeMenu;
            $.data(this.element, 'imui_dropdown_menu.active', this.activeMenu);

            this.open = true;
            this._trigger('select', event, {item: this.activeMenu.closest('li')});
        },
        destroy: function() {
            this.element.find(':imui-imuimenu').imuiMenuItem('destroy');

            this.element
                .removeClass('imui-menubar ui-widget-header ui-helper-clearfix')
                .removeAttr('role')
                .unbind('.imui_dropdown_menu');

            this.element.children('li')
                .removeClass('imui-menubar-item')
                .removeAttr('role');

            $('> li > a', this.element)
                .removeClass('ui-button ui-widget ui-button-text-only ui-menubar-link ui-state-default')
                .removeAttr('role')
                .unbind('.imui_dropdown_menu');

            $.Widget.prototype.destroy.call(this);
        }
    });

    /*
     * マイメニュー
     */
    $(document).ready(function() {
        $('#imui-user-utility').imui_dropdown_menu();

        $('#start_help_pc').children().removeAttr('href');
        var startHelp = function(){
            $('body').imuiSiteTour('start');
        };
        $('body').imuiSiteTour();
        $('#start_help_pc').on('click.siteHelp',startHelp);

        var parent = $(this).parent()[0];
        var removeLauncher = function() {
            $('.imui-box-launcher').remove();
            $('div[aria-labelledby=ui-dialog-title-imui-launcher-add-dialog]').remove();
            $('#imui-launcher-add-dialog').remove();
            $(parent).removeClass('active');
        };

        $('a', '.imui-nav-global-launcher').bind('click', function(event) {
            event.preventDefault();
            if ($('.imui-box-launcher').size() == 0) {
                var launcher = new Array();
                launcher.push('<div class="imui-box-launcher">')
                launcher.push('<div id="imui-list-launcher" class="imui-list-launcher"><ul><li></li></ul></div>');
                launcher.push('<p class="imui-btn-launcher-back"><a href="javascript: void(0);"><span></span></a></p>');
                launcher.push('<p class="imui-btn-launcher-add"><a href="javascript: void(0);"><span></span></a></p>');
                launcher.push('<p class="imui-btn-launcher-settings"><a href="user/mymenu/settings"><span class="im-ui-icon-common-24-settings"></span></a></p>');
                launcher.push('<p class="imui-btn-launcher-close"><a href="javascript: void(0);"><span></span></a></p>');
                launcher.push('<div id="imui-launcher-add-dialog"></div>');
                launcher.push('</div>');
                $(this).after(launcher.join(''));

                $('.imui-box-launcher').hide().fadeIn(200);
                $('.imui-box-launcher .imui-btn-launcher-back').hide();
                $('.imui-box-launcher .imui-btn-launcher-add').hide();
                $('.imui-box-launcher .imui-btn-launcher-settings').hide();
                var parent = $(this).parent()[0];
                $(parent).addClass('active');

                $.ajax({
                    headers:{'x-jp-co-intra-mart-ajax-request-from-imui-form-util':'true'},
                    dataType:'text', type:'GET', url:'user/mymenu/js_launcher',
                    data:{},
                    success:function(data) {
                        eval(data.replace(/<\/?script[^>]*>/g, ''));
                    },
                    error:function(request, textStatus, errorThrown) {
                        removeLauncher();
                        if (jQuery.imuiFormUtil && jQuery.imuiFormUtil.transitionToErrorPage) {
                            jQuery.imuiFormUtil.transitionToErrorPage(request, textStatus, errorThrown);
                        } else {
                            imuiShowErrorMessage(request.statusText + '(' + request.status + ')', '');
                        }
                    }
                });

                $('.imui-box-launcher .imui-btn-launcher-back a').mouseover(function() {
                    $('.imui-btn-launcher-back').addClass('ui-state-hover');
                    $(this).find('span:first').removeClass('im-ui-icon-launcher-16-move-up-gray').addClass('im-ui-icon-launcher-16-move-up-black');
                }).mouseout(function() {
                    $('.imui-btn-launcher-back').removeClass('ui-state-hover');
                    $(this).find('span:first').removeClass('im-ui-icon-launcher-16-move-up-black').addClass('im-ui-icon-launcher-16-move-up-gray');
                }).mouseout();

                $('.imui-box-launcher .imui-btn-launcher-add a').mouseover(function() {
                    $('.imui-btn-launcher-add').addClass('ui-state-hover');
                }).mouseout(function() {
                    $('.imui-btn-launcher-add').removeClass('ui-state-hover');
                }).mouseout();

                $('.imui-box-launcher .imui-btn-launcher-settings a').mouseover(function() {
                    $('.imui-btn-launcher-settings').addClass('ui-state-hover');
                }).mouseout(function() {
                    $('.imui-btn-launcher-settings').removeClass('ui-state-hover');
                }).mouseout();

                $('.imui-box-launcher .imui-btn-launcher-close a').click(function() {
                    $('.imui-box-launcher').fadeOut(200, function() {
                        removeLauncher();
                    });
                }).mouseover(function() {
                    $('.imui-btn-launcher-close').addClass('ui-state-hover');
                    $(this).find('span:first').removeClass('im-ui-icon-launcher-16-close-gray').addClass('im-ui-icon-launcher-16-close-black');
                }).mouseout(function() {
                    $('.imui-btn-launcher-close').removeClass('ui-state-hover');
                    $(this).find('span:first').removeClass('im-ui-icon-launcher-16-close-black').addClass('im-ui-icon-launcher-16-close-gray');
                }).mouseout();
            } else {
                $('.imui-box-launcher').fadeOut(200, function() {
                    removeLauncher();
                });
            }
        });
    });
})(jQuery);

/*
 * iFrame の大きさ制御関数
 */
(function($) {
    $(document).ready(function() {
        fitIframe();
        $(window).resize(fitIframe);
    });
    function fitIframe() {
        var header = $('#imui-header').height();
        var height = $(window).height() - header;
        $('#IM_MAIN').find('iframe:not(".imui-no-resize-iframe")').height(height).width($(window).width());
        $('#IM_MAIN').height(height).width($(window).width());

        //iframe のコンテンツ読み込みが終了したら、iframe 内の min-width を window の幅にする
        $($('#IM_MAIN')).load(function () {
          try {
            if ($('#IM_MAIN').get(0).contentDocument && $("#IM_MAIN").contents().find('body').css('min-width') > $(window).width()) {
              $("#IM_MAIN").contents().find('body').css('min-width', $(window).width());
              $("#IM_MAIN").contents().find('#imui-container').css('min-width', $(window).width());
            }
          } catch(ignore) {
          }
        });
    }
})(jQuery);

フォルダ・ファイル構成

src
├── main
│   ├── conf
│   │   ├── message
│   │   │   └── platform
│   │   │       └── theme
│   │   │           └── sample_theme
│   │   │               ├── caption.properties
│   │   │               ├── caption_en.properties
│   │   │               ├── caption_ja.properties
│   │   │               └── caption_zh_CN.properties
│   │   ├── routing-jssp-config
│   │   ├── routing-service-config
│   │   └── theme-config
│   │       └── sample_theme.xml
│   ├── generated
│   ├── java
│   ├── jssp
│   │   └── src
│   │       └── theme
│   │           └── sample_theme
│   │               ├── body.html
│   │               ├── body.js
│   │               ├── footer.html
│   │               ├── footer.js
│   │               ├── head.html
│   │               ├── head.js
│   │               ├── header.html
│   │               └── header.js
│   ├── plugin
│   ├── public
│   │   └── ui
│   │       └── theme
│   │           └── sample_theme
│   │               ├── css
│   │               │   ├── common
│   │               │   │   ├── components.less
│   │               │   │   ├── default.less
│   │               │   │   ├── icons.less
│   │               │   │   ├── jqueryUI.less
│   │               │   │   ├── mixins.less
│   │               │   │   ├── modules.less
│   │               │   │   ├── parameters.less
│   │               │   │   └── portal.less
│   │               │   ├── theme
│   │               │   │   ├── body.less
│   │               │   │   ├── footer.less
│   │               │   │   ├── header.less
│   │               │   │   └── parameters.less
│   │               │   ├── theme.css
│   │               │   ├── theme.less
│   │               │   └── theme.min.css
│   │               ├── images
│   │               │   ├── btn_im_01.png
│   │               │   ├── logo.png
│   │               │   ├── poweredbyim.png
│   │               │   └── thumbnail.png
│   │               └── js
│   │                   ├── theme.js
│   │                   └── theme.min.js
│   ├── resources
│   ├── schema
│   ├── storage
│   │   ├── public
│   │   └── system
│   └── webapp
└── test
    ├── conf
    │   ├── message
    │   ├── routing-jssp-config
    │   └── routing-service-config
    ├── generated
    ├── java
    ├── jssp
    │   └── src
    ├── plugin
    ├── public
    ├── resources
    ├── schema
    ├── storage
    │   ├── public
    │   └── system
    └── webapp