pip-webui
Version:
HTML5 UI for LOB applications
112 lines (95 loc) • 4.71 kB
HTML
<md-toolbar class="pip-appbar-ext">
</md-toolbar>
<pip-document>
<div class="pip-menu-container">
<div class="pip-content-container p24">
<div class="scrolled">
<h2 class="text-title tm0 bm24">{{ 'GUIDE' | translate }}</h2>
<h3 class="text-subhead2">{{:: 'GUIDE_RELEASE_DIALOG' | translate}}</h3>
<div>
<md-button class="lm0 md-raised md-accent flat" ng-click="showReleaseGuidance($event)">
{{:: 'OPEN_GUIDE_RELEASE_DIALOG' | translate}}
</md-button>
</div>
<h3 class="text-subhead2">{{:: 'GUIDE_INTRO_DIALOG' | translate}}</h3>
<div>
<md-button class="lm0 md-raised md-accent flat" ng-click="showIntroGuidance($event)">
{{:: 'OPEN_GUIDE_INTRO_DIALOG' | translate}}
</md-button>
</div>
<h3 class="text-subhead2">{{:: 'GUIDE_DIALOG' | translate}}</h3>
<div>
<md-button class="lm0 md-raised md-accent flat" ng-click="onGuideDialog($event)">
{{ 'OPEN_GUIDE_DIALOG' | translate}}
</md-button>
</div>
<pre class="text-body1 color-window-bg p16">
<h3 class="text-subhead2 m0">{{:: 'CODE' | translate}}</h3>
<code class="language-js">pipGuidance.showIntroReleaseGuide($scope.guide, $scope.settings, null, 'en', $rootScope.$party, $rootScope.$user);</code></pre>
<md-divider class="tm8 pip-list-divider"></md-divider>
<h3 class="text-subhead2">{{:: 'GUIDE_TIP' | translate}}</h3>
<div>
<md-button class="lm0 md-raised md-accent flat" ng-click="showTips($event)">
{{ 'OPEN_GUIDE_TIP' | translate}}
</md-button>
</div>
<pre class="text-body1 color-window-bg p16">
<h3 class="text-subhead2 m0">{{:: 'CODE' | translate}}</h3>
<strong>JS:</strong>
<code class="language-js">
pipPopover.show({
class: 'pip-tip',
cancelCallback: function () {
console.log('backdrop clicked');
},
<strong>locals</strong>:{
title: 'Some long or not very long title1';
},
controller: function ($scope, $timeout, $mdMedia) {
$scope.title = $scope.<strong>locals</strong>.title;
$scope.content = 'Completely synthesize high standards in products without stand-alone'
+ 'action items. Dramatically synergize customized models after competitive networks.'
+ 'Progressively optimize highly efficient internal or "organic" sources and cost effective'
+ 'imperatives. Uniquely drive client-based growth strategies vis-a-vis backward-compatible '
+ 'bandwidth. Authoritatively seize clicks-and-mortar models through magnetic paradigms.';
$scope.image = 'https://pp.vk.me/c7004/v7004812/1cbe4/SlAPkJDiUn4.jpg';
$scope.link = 'http://github.com/pip-life/pip-life/issues';
$scope.$mdMedia = $mdMedia;
position();
$scope.onNextClick = function () {
$pipPopover.hide();
};
function position() {
$timeout(function () {
var backdropElement = $('.pip-popover-backdrop'),
popover = backdropElement.find('.pip-popover');
popover.find('.pip-pic').css('background-image', 'url(' + $scope.image + ')');
}, 100);
}
},
templateUrl: 'tips/<strong>tip.template.html</strong>'
});
</code>
<strong>HTML tip.template.html:</strong>
<code class="language-markup">
<div ng-if="title" class='pip-title p24-flex flex-fixed bp16'>
{{ title | translate }}
</div>
<div class='pip-content pip-popover-content lp24-flex rp24-flex text-body1 bm64 pip-scroll'
ng-class="{'tm24' : !title }">
<div ng-if="image && $mdMedia('gt-xs')" class="pip-pic"></div>
<pip-markdown pip-text="content" pip-rebind="true"></pip-markdown>
</div>
<div class='pip-footer lm24-flex rm24-flex position-bottom layout-row layout-align-start-center'>
<a ng-if="link" target="_blank" href="{{ link }}" class="text-body2" flex>
{{ 'MORE_URL' | translate }}
</a>
<div ng-if="!link" class="flex"></div>
<md-button ng-click='onNextClick()' class="rm0">
{{ 'NEXT' | translate }}
</md-button>
</div></code></pre>
</div>
</div>
</div>
</pip-document>