Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit67ea483

Browse files
committed
Support for DTS
1 parent5f8b06e commit67ea483

File tree

2 files changed

+74
-3
lines changed

2 files changed

+74
-3
lines changed

‎titlepage.html‎

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
and <h1> for the title.
1919
2020
The document stage can be set in two ways:
21-
1. Add a 'cxx-draft' or'cxx-pdts' class to the <body> element.
22-
2. Set the <cxx-titlepage stage> attribute to 'draft' or'pdts'.
21+
1. Add a 'cxx-draft','cxx-pdts', or `cxx-dts' class to the <body> element.
22+
2. Set the <cxx-titlepage stage> attribute to 'draft','pdts', or `dts`.
2323
Each will be propagated to the other.
2424
We'll add more stages as our documents get to them.
2525
@@ -60,6 +60,21 @@
6060
:host-context(body.cxx-pdts) .copyrightaddress {font-style: normal;margin-left:2em; }
6161
:host-context(body.cxx-pdts) .copyrightaddressa {color: inherit;text-decoration: inherit; }
6262

63+
/* this dts stuff just replicates the pdts stuff above*/
64+
:host-context(body.cxx-dts) .header {position: absolute;right:0;top:0;text-align: right; }
65+
:host-context(body.cxx-dts) .header ::contentcxx-docnum {font-size:150%; }
66+
:host-context(body.cxx-dts) .headercxx-docnum {font-size:150%; }
67+
:host-context(body.cxx-dts)hgroup {position: absolute;top:30%; }
68+
:host-context(body.cxx-dts)hgroup* {margin:0; }
69+
:host-context(body.cxx-dts)hgrouph1 {font-size:150%;font-weight: bold; }
70+
:host-context(body.cxx-dts)hgrouph2 {font-size:100%;font-weight: normal; }
71+
:host-context(body.cxx-dts) .footer {position: absolute;left:0;bottom:5%; }
72+
:host-context(body.cxx-dts)figure {border:#111 solid1px;padding:10px;margin-left: auto;margin-right: auto; }
73+
:host-context(body.cxx-dts)figcaption {text-align: center;font-weight: bold; }
74+
:host-context(body.cxx-dts) .warning {position: absolute;bottom:20%; }
75+
:host-context(body.cxx-dts) .copyrightaddress {font-style: normal;margin-left:2em; }
76+
:host-context(body.cxx-dts) .copyrightaddressa {color: inherit;text-decoration: inherit; }
77+
6378
th {text-align: left;vertical-align: top; }
6479
</style>
6580
<templateif="{{stage == 'draft'}}">
@@ -140,6 +155,59 @@ <h2>Langages de programmation — {{title_fr}}</h2>
140155
</figure>
141156
</div>
142157
</template>
158+
159+
<templateif="{{stage == 'dts'}}">
160+
<divclass="page">
161+
<divclass="header">
162+
<strong>ISO/IEC JTC1 SC22 WG21<contentselect="cxx-docnum"/></content></strong><br/>
163+
Date:<contentselect="time[pubdate]"></content><br/>
164+
ISO/IEC DTS<contentselect="cxx-project-number"></content><br/>
165+
ISO/IEC JTC1 SC22<br/>
166+
Secretariat: ANSI
167+
</div>
168+
<hgroup>
169+
<h1>Programming Languages — {{title}}</h1>
170+
<templateif="{{title_fr}}">
171+
<h2>Langages de programmation — {{title_fr}}</h2>
172+
</template>
173+
</hgroup>
174+
<figureclass="warning">
175+
<figcaption>Warning</figcaption>
176+
<p>This document is not an ISO International Standard. It is distributed for review and comment. It is
177+
subject to change without notice and may not be referred to as an International Standard.
178+
</p>
179+
<p>Recipients of this draft are invited to submit, with their comments, notification of any relevant
180+
patent rights of which they are aware and to provide supporting documentation.</p>
181+
</figure>
182+
<divclass="footer">
183+
Document type: Draft Technical Specification<br/>
184+
Document stage: (40) Enquiry<br/>
185+
Document language: E
186+
</div>
187+
</div>
188+
<divclass="page">
189+
<figureclass="copyright">
190+
<figcaption>Copyright notice</figcaption>
191+
<p>This ISO document is a working draft or committee draft and is copyright-protected by ISO. While
192+
the reproduction of working drafts or committee drafts in any form for use by participants in the
193+
ISO standards development process is permitted without prior permission from ISO, neither this
194+
document nor any extract from it may be reproduced, stored or transmitted in any form for any
195+
other purpose without prior written permission from ISO.</p>
196+
<p>Requests for permission to reproduce this document for the purpose of selling it should be
197+
addressed as shown below or to ISO’s member body in the country of the requester:</p>
198+
<address>
199+
ISO copyright officer<br>
200+
Case postale 56, CH-1211 Geneva 20<br>
201+
Tel. + 41 22 749 01 11<br>
202+
Fax + 41 22 749 09 47<br>
203+
E-mail<ahref="mailto:copyright@iso.org">copyright@iso.org</a><br>
204+
Web<ahref="http://www.iso.org">www.iso.org</a>
205+
</address>
206+
<p>Reproduction may be subject to royalty payments or a licensing agreement.</p>
207+
<p>Violators may be prosecuted.</p>
208+
</figure>
209+
</div>
210+
</template>
143211
</template>
144212
<scriptsrc="titlepage.js"></script>
145213
</polymer-element>

‎titlepage.js‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ limitations under the License.
2525
stage:null,
2626

2727
computeStage:function(){
28-
varstages=['draft','pdts'];
28+
varstages=['draft','pdts','dts'];
2929
varpresentStages=stages.filter(function(stage){
3030
returndocument.body.classList.contains('cxx-'+stage);
3131
});
@@ -71,6 +71,9 @@ limitations under the License.
7171
}elseif(this.stage=='pdts'){
7272
stage_suffix=", PDTS"
7373
}
74+
}elseif(this.stage=='pdts'){
75+
stage_suffix=", DTS"
76+
}
7477
if(this.title){
7578
document.title=this.title+stage_suffix;
7679
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp