va_common 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e415eac23ed1615110d9569e5b2cd99db0cd3061
4
- data.tar.gz: 2c4cf5cc45f20bc6a11be295b9a9eae26d2e3d98
3
+ metadata.gz: 5eb6ee7fe27b9149a9a232f64a924edd1fd9184f
4
+ data.tar.gz: eb5bc4f306dc64347c05a0726076940b3e93a722
5
5
  SHA512:
6
- metadata.gz: 40d8a2a8e5c68c049f2a788ee3c60f17e693becc5350c098e929808a52aa422eeff542730626a3b34849e87a7b10013466278c8f696e9d57bbc92127aebda223
7
- data.tar.gz: eafba2375964a3c83a221be50f300dbbc6eea950c6fbbd90bf1c93a92a6b8180e225e44976147873a8d432e370226b4b156f855ea8075d1e932d6a0b11ea9f15
6
+ metadata.gz: 3c15e00af31a0b4b6776b4e216a1d3f7413f3d45414b11b6dc3c67f2fd65a9c80372b3915110df08fdd0fa9887b33a522b3f792a0a6e8235a5e1bb88e4e3fd74
7
+ data.tar.gz: 55090e29ed3ccc0a54e415e882e1a7c83704c3c3d1b05c16c8fc51bc7556e57571197ea2e0530dfa17592d2698ecd0eed989b524a75b215c5243c16bb9d79816
@@ -4,6 +4,7 @@
4
4
  //= require jquery.stellar
5
5
  //= require html5shiv
6
6
  //= require foundation
7
+ //= require vendor/foundation.reveal
7
8
  //= require modernizr
8
9
  //= require components
9
10
  //= require respond
@@ -0,0 +1,498 @@
1
+ ;(function ($, window, document, undefined) {
2
+ 'use strict';
3
+
4
+ Foundation.libs.reveal = {
5
+ name : 'reveal',
6
+
7
+ version : '5.5.2',
8
+
9
+ locked : false,
10
+
11
+ settings : {
12
+ animation : 'fadeAndPop',
13
+ animation_speed : 250,
14
+ close_on_background_click : true,
15
+ close_on_esc : true,
16
+ dismiss_modal_class : 'close-reveal-modal',
17
+ multiple_opened : false,
18
+ bg_class : 'reveal-modal-bg',
19
+ root_element : 'body',
20
+ open : function(){},
21
+ opened : function(){},
22
+ close : function(){},
23
+ closed : function(){},
24
+ on_ajax_error: $.noop,
25
+ bg : $('.reveal-modal-bg'),
26
+ css : {
27
+ open : {
28
+ 'opacity' : 0,
29
+ 'visibility' : 'visible',
30
+ 'display' : 'block'
31
+ },
32
+ close : {
33
+ 'opacity' : 1,
34
+ 'visibility' : 'hidden',
35
+ 'display' : 'none'
36
+ }
37
+ }
38
+ },
39
+
40
+ init : function (scope, method, options) {
41
+ $.extend(true, this.settings, method, options);
42
+ this.bindings(method, options);
43
+ },
44
+
45
+ events : function (scope) {
46
+ var self = this,
47
+ S = self.S;
48
+
49
+ S(this.scope)
50
+ .off('.reveal')
51
+ .on('click.fndtn.reveal', '[' + this.add_namespace('data-reveal-id') + ']:not([disabled])', function (e) {
52
+ e.preventDefault();
53
+
54
+ if (!self.locked) {
55
+ var element = S(this),
56
+ ajax = element.data(self.data_attr('reveal-ajax')),
57
+ replaceContentSel = element.data(self.data_attr('reveal-replace-content'));
58
+
59
+ self.locked = true;
60
+
61
+ if (typeof ajax === 'undefined') {
62
+ self.open.call(self, element);
63
+ } else {
64
+ var url = ajax === true ? element.attr('href') : ajax;
65
+ self.open.call(self, element, {url : url}, { replaceContentSel : replaceContentSel });
66
+ }
67
+ }
68
+ });
69
+
70
+ S(document)
71
+ .on('click.fndtn.reveal', this.close_targets(), function (e) {
72
+ e.preventDefault();
73
+ if (!self.locked) {
74
+ var settings = S('[' + self.attr_name() + '].open').data(self.attr_name(true) + '-init') || self.settings,
75
+ bg_clicked = S(e.target)[0] === S('.' + settings.bg_class)[0];
76
+
77
+ if (bg_clicked) {
78
+ if (settings.close_on_background_click) {
79
+ e.stopPropagation();
80
+ } else {
81
+ return;
82
+ }
83
+ }
84
+
85
+ self.locked = true;
86
+ self.close.call(self, bg_clicked ? S('[' + self.attr_name() + '].open:not(.toback)') : S(this).closest('[' + self.attr_name() + ']'));
87
+ }
88
+ });
89
+
90
+ if (S('[' + self.attr_name() + ']', this.scope).length > 0) {
91
+ S(this.scope)
92
+ // .off('.reveal')
93
+ .on('open.fndtn.reveal', this.settings.open)
94
+ .on('opened.fndtn.reveal', this.settings.opened)
95
+ .on('opened.fndtn.reveal', this.open_video)
96
+ .on('close.fndtn.reveal', this.settings.close)
97
+ .on('closed.fndtn.reveal', this.settings.closed)
98
+ .on('closed.fndtn.reveal', this.close_video);
99
+ } else {
100
+ S(this.scope)
101
+ // .off('.reveal')
102
+ .on('open.fndtn.reveal', '[' + self.attr_name() + ']', this.settings.open)
103
+ .on('opened.fndtn.reveal', '[' + self.attr_name() + ']', this.settings.opened)
104
+ .on('opened.fndtn.reveal', '[' + self.attr_name() + ']', this.open_video)
105
+ .on('close.fndtn.reveal', '[' + self.attr_name() + ']', this.settings.close)
106
+ .on('closed.fndtn.reveal', '[' + self.attr_name() + ']', this.settings.closed)
107
+ .on('closed.fndtn.reveal', '[' + self.attr_name() + ']', this.close_video);
108
+ }
109
+
110
+ return true;
111
+ },
112
+
113
+ // PATCH #3: turning on key up capture only when a reveal window is open
114
+ key_up_on : function (scope) {
115
+ var self = this;
116
+
117
+ // PATCH #1: fixing multiple keyup event trigger from single key press
118
+ self.S('body').off('keyup.fndtn.reveal').on('keyup.fndtn.reveal', function ( event ) {
119
+ var open_modal = self.S('[' + self.attr_name() + '].open'),
120
+ settings = open_modal.data(self.attr_name(true) + '-init') || self.settings ;
121
+ // PATCH #2: making sure that the close event can be called only while unlocked,
122
+ // so that multiple keyup.fndtn.reveal events don't prevent clean closing of the reveal window.
123
+ if ( settings && event.which === 27 && settings.close_on_esc && !self.locked) { // 27 is the keycode for the Escape key
124
+ self.close.call(self, open_modal);
125
+ }
126
+ });
127
+
128
+ return true;
129
+ },
130
+
131
+ // PATCH #3: turning on key up capture only when a reveal window is open
132
+ key_up_off : function (scope) {
133
+ this.S('body').off('keyup.fndtn.reveal');
134
+ return true;
135
+ },
136
+
137
+ open : function (target, ajax_settings) {
138
+ var self = this,
139
+ modal;
140
+
141
+ if (target) {
142
+ if (typeof target.selector !== 'undefined') {
143
+ // Find the named node; only use the first one found, since the rest of the code assumes there's only one node
144
+ modal = self.S('#' + target.data(self.data_attr('reveal-id'))).first();
145
+ } else {
146
+ modal = self.S(this.scope);
147
+
148
+ ajax_settings = target;
149
+ }
150
+ } else {
151
+ modal = self.S(this.scope);
152
+ }
153
+
154
+ var settings = modal.data(self.attr_name(true) + '-init');
155
+ settings = settings || this.settings;
156
+
157
+
158
+ if (modal.hasClass('open') && target.attr('data-reveal-id') == modal.attr('id')) {
159
+ return self.close(modal);
160
+ }
161
+
162
+ if (!modal.hasClass('open')) {
163
+ var open_modal = self.S('[' + self.attr_name() + '].open');
164
+
165
+ if (typeof modal.data('css-top') === 'undefined') {
166
+ modal.data('css-top', parseInt(modal.css('top'), 10))
167
+ .data('offset', this.cache_offset(modal));
168
+ }
169
+
170
+ modal.attr('tabindex','0').attr('aria-hidden','false');
171
+
172
+ this.key_up_on(modal); // PATCH #3: turning on key up capture only when a reveal window is open
173
+
174
+ // Prevent namespace event from triggering twice
175
+ modal.on('open.fndtn.reveal', function(e) {
176
+ if (e.namespace !== 'fndtn.reveal') return;
177
+ });
178
+
179
+ modal.on('open.fndtn.reveal').trigger('open.fndtn.reveal');
180
+
181
+ if (open_modal.length < 1) {
182
+ this.toggle_bg(modal, true);
183
+ }
184
+
185
+ if (typeof ajax_settings === 'string') {
186
+ ajax_settings = {
187
+ url : ajax_settings
188
+ };
189
+ }
190
+
191
+ if (typeof ajax_settings === 'undefined' || !ajax_settings.url) {
192
+ if (open_modal.length > 0) {
193
+ if (settings.multiple_opened) {
194
+ self.to_back(open_modal);
195
+ } else {
196
+ self.hide(open_modal, settings.css.close);
197
+ }
198
+ }
199
+
200
+ this.show(modal, settings.css.open);
201
+ } else {
202
+ var old_success = typeof ajax_settings.success !== 'undefined' ? ajax_settings.success : null;
203
+ $.extend(ajax_settings, {
204
+ success : function (data, textStatus, jqXHR) {
205
+ if ( $.isFunction(old_success) ) {
206
+ var result = old_success(data, textStatus, jqXHR);
207
+ if (typeof result == 'string') {
208
+ data = result;
209
+ }
210
+ }
211
+
212
+ if (typeof options !== 'undefined' && typeof options.replaceContentSel !== 'undefined') {
213
+ modal.find(options.replaceContentSel).html(data);
214
+ } else {
215
+ modal.html(data);
216
+ }
217
+
218
+ self.S(modal).foundation('section', 'reflow');
219
+ self.S(modal).children().foundation();
220
+
221
+ if (open_modal.length > 0) {
222
+ if (settings.multiple_opened) {
223
+ self.to_back(open_modal);
224
+ } else {
225
+ self.hide(open_modal, settings.css.close);
226
+ }
227
+ }
228
+ self.show(modal, settings.css.open);
229
+ }
230
+ });
231
+
232
+ // check for if user initalized with error callback
233
+ if (settings.on_ajax_error !== $.noop) {
234
+ $.extend(ajax_settings, {
235
+ error : settings.on_ajax_error
236
+ });
237
+ }
238
+
239
+ $.ajax(ajax_settings);
240
+ }
241
+ }
242
+ self.S(window).trigger('resize');
243
+ },
244
+
245
+ close : function (modal) {
246
+ var modal = modal && modal.length ? modal : this.S(this.scope),
247
+ open_modals = this.S('[' + this.attr_name() + '].open'),
248
+ settings = modal.data(this.attr_name(true) + '-init') || this.settings,
249
+ self = this;
250
+
251
+ if (open_modals.length > 0) {
252
+
253
+ modal.removeAttr('tabindex','0').attr('aria-hidden','true');
254
+
255
+ this.locked = true;
256
+ this.key_up_off(modal); // PATCH #3: turning on key up capture only when a reveal window is open
257
+
258
+ modal.trigger('close.fndtn.reveal');
259
+
260
+ if ((settings.multiple_opened && open_modals.length === 1) || !settings.multiple_opened || modal.length > 1) {
261
+ self.toggle_bg(modal, false);
262
+ self.to_front(modal);
263
+ }
264
+
265
+ if (settings.multiple_opened) {
266
+ self.hide(modal, settings.css.close, settings);
267
+ self.to_front($($.makeArray(open_modals).reverse()[1]));
268
+ } else {
269
+ self.hide(open_modals, settings.css.close, settings);
270
+ }
271
+ }
272
+ },
273
+
274
+ close_targets : function () {
275
+ var base = '.' + this.settings.dismiss_modal_class;
276
+
277
+ if (this.settings.close_on_background_click) {
278
+ return base + ', .' + this.settings.bg_class;
279
+ }
280
+
281
+ return base;
282
+ },
283
+
284
+ toggle_bg : function (modal, state) {
285
+ if (this.S('.' + this.settings.bg_class).length === 0) {
286
+ this.settings.bg = $('<div />', {'class': this.settings.bg_class})
287
+ .appendTo('body').hide();
288
+ }
289
+
290
+ var visible = this.settings.bg.filter(':visible').length > 0;
291
+ if ( state != visible ) {
292
+ if ( state == undefined ? visible : !state ) {
293
+ this.hide(this.settings.bg);
294
+ } else {
295
+ this.show(this.settings.bg);
296
+ }
297
+ }
298
+ },
299
+
300
+ show : function (el, css) {
301
+ // is modal
302
+ if (css) {
303
+ var settings = el.data(this.attr_name(true) + '-init') || this.settings,
304
+ root_element = settings.root_element,
305
+ context = this;
306
+
307
+ if (el.parent(root_element).length === 0) {
308
+ var placeholder = el.wrap('<div style="display: none;" />').parent();
309
+
310
+ el.on('closed.fndtn.reveal.wrapped', function () {
311
+ el.detach().appendTo(placeholder);
312
+ el.unwrap().unbind('closed.fndtn.reveal.wrapped');
313
+ });
314
+
315
+ el.detach().appendTo(root_element);
316
+ }
317
+
318
+ var animData = getAnimationData(settings.animation);
319
+ if (!animData.animate) {
320
+ this.locked = false;
321
+ }
322
+ if (animData.pop) {
323
+ css.top = $(window).scrollTop() - el.data('offset') + 'px';
324
+ var end_css = {
325
+ top: $(window).scrollTop() + el.data('css-top') + 'px',
326
+ opacity: 1
327
+ };
328
+
329
+ return setTimeout(function () {
330
+ return el
331
+ .css(css)
332
+ .animate(end_css, settings.animation_speed, 'linear', function () {
333
+ context.locked = false;
334
+ el.trigger('opened.fndtn.reveal');
335
+ })
336
+ .addClass('open');
337
+ }, settings.animation_speed / 2);
338
+ }
339
+
340
+ if (animData.fade) {
341
+ css.top = $(window).scrollTop() + el.data('css-top') + 'px';
342
+ var end_css = {opacity: 1};
343
+
344
+ return setTimeout(function () {
345
+ return el
346
+ .css(css)
347
+ .animate(end_css, settings.animation_speed, 'linear', function () {
348
+ context.locked = false;
349
+ el.trigger('opened.fndtn.reveal');
350
+ })
351
+ .addClass('open');
352
+ }, settings.animation_speed / 2);
353
+ }
354
+
355
+ return el.css(css).show().css({opacity : 1}).addClass('open').trigger('opened.fndtn.reveal');
356
+ }
357
+
358
+ var settings = this.settings;
359
+
360
+ // should we animate the background?
361
+ if (getAnimationData(settings.animation).fade) {
362
+ return el.fadeIn(settings.animation_speed / 2);
363
+ }
364
+
365
+ this.locked = false;
366
+
367
+ return el.show();
368
+ },
369
+
370
+ to_back : function(el) {
371
+ el.addClass('toback');
372
+ },
373
+
374
+ to_front : function(el) {
375
+ el.removeClass('toback');
376
+ },
377
+
378
+ hide : function (el, css) {
379
+ // is modal
380
+ if (css) {
381
+ var settings = el.data(this.attr_name(true) + '-init'),
382
+ context = this;
383
+ settings = settings || this.settings;
384
+
385
+ var animData = getAnimationData(settings.animation);
386
+ if (!animData.animate) {
387
+ this.locked = false;
388
+ }
389
+ if (animData.pop) {
390
+ var end_css = {
391
+ top: - $(window).scrollTop() - el.data('offset') + 'px',
392
+ opacity: 0
393
+ };
394
+
395
+ return setTimeout(function () {
396
+ return el
397
+ .animate(end_css, settings.animation_speed, 'linear', function () {
398
+ context.locked = false;
399
+ el.css(css).trigger('closed.fndtn.reveal');
400
+ })
401
+ .removeClass('open');
402
+ }, settings.animation_speed / 2);
403
+ }
404
+
405
+ if (animData.fade) {
406
+ var end_css = {opacity : 0};
407
+
408
+ return setTimeout(function () {
409
+ return el
410
+ .animate(end_css, settings.animation_speed, 'linear', function () {
411
+ context.locked = false;
412
+ el.css(css).trigger('closed.fndtn.reveal');
413
+ })
414
+ .removeClass('open');
415
+ }, settings.animation_speed / 2);
416
+ }
417
+
418
+ return el.hide().css(css).removeClass('open').trigger('closed.fndtn.reveal');
419
+ }
420
+
421
+ var settings = this.settings;
422
+
423
+ // should we animate the background?
424
+ if (getAnimationData(settings.animation).fade) {
425
+ return el.fadeOut(settings.animation_speed / 2);
426
+ }
427
+
428
+ return el.hide();
429
+ },
430
+
431
+ close_video : function (e) {
432
+ var video = $('.flex-video', e.target),
433
+ iframe = $('iframe', video);
434
+
435
+ if (iframe.length > 0) {
436
+ iframe.attr('data-src', iframe[0].src);
437
+ iframe.attr('src', iframe.attr('src'));
438
+ video.hide();
439
+ }
440
+ },
441
+
442
+ open_video : function (e) {
443
+ var video = $('.flex-video', e.target),
444
+ iframe = video.find('iframe');
445
+
446
+ if (iframe.length > 0) {
447
+ var data_src = iframe.attr('data-src');
448
+ if (typeof data_src === 'string') {
449
+ iframe[0].src = iframe.attr('data-src');
450
+ } else {
451
+ var src = iframe[0].src;
452
+ iframe[0].src = undefined;
453
+ iframe[0].src = src;
454
+ }
455
+ video.show();
456
+ }
457
+ },
458
+
459
+ data_attr : function (str) {
460
+ if (this.namespace.length > 0) {
461
+ return this.namespace + '-' + str;
462
+ }
463
+
464
+ return str;
465
+ },
466
+
467
+ cache_offset : function (modal) {
468
+ var offset = modal.show().height() + parseInt(modal.css('top'), 10) + modal.scrollY;
469
+
470
+ modal.hide();
471
+
472
+ return offset;
473
+ },
474
+
475
+ off : function () {
476
+ $(this.scope).off('.fndtn.reveal');
477
+ },
478
+
479
+ reflow : function () {}
480
+ };
481
+
482
+ /*
483
+ * getAnimationData('popAndFade') // {animate: true, pop: true, fade: true}
484
+ * getAnimationData('fade') // {animate: true, pop: false, fade: true}
485
+ * getAnimationData('pop') // {animate: true, pop: true, fade: false}
486
+ * getAnimationData('foo') // {animate: false, pop: false, fade: false}
487
+ * getAnimationData(null) // {animate: false, pop: false, fade: false}
488
+ */
489
+ function getAnimationData(str) {
490
+ var fade = /fade/i.test(str);
491
+ var pop = /pop/i.test(str);
492
+ return {
493
+ animate : fade || pop,
494
+ pop : pop,
495
+ fade : fade
496
+ };
497
+ }
498
+ }(jQuery, window, window.document));
@@ -1541,6 +1541,69 @@ a {color: #fff; background: none;}
1541
1541
 
1542
1542
  // Search
1543
1543
 
1544
+ #search_form {
1545
+ input[type="submit"] {
1546
+ font-size: 16px;
1547
+ }
1548
+ }
1549
+ .reveal-modal {
1550
+ padding: 0px;
1551
+ }
1552
+ #trigger-overlay-button button {
1553
+ font-size: 16px;
1554
+ padding: .5em;
1555
+ }
1556
+
1557
+ button#overlay-close-button {
1558
+ border-radius: 0;
1559
+ display: block;
1560
+ width: 100% !important;
1561
+ margin: 0;
1562
+ width: auto;
1563
+ background: #0071bc;
1564
+ color: #fff;
1565
+ }
1566
+
1567
+ .overlay {
1568
+ z-index: 10000;
1569
+ }
1570
+ .search-button {
1571
+ margin: 0.1em .5em 0 0;
1572
+ padding: 0;
1573
+ float: right;
1574
+ a {
1575
+ line-height: 1em;
1576
+ display: inline-block;
1577
+ padding: .41em;
1578
+ font-size: .85em;
1579
+ border-radius: .2em;
1580
+ text-decoration: none;
1581
+ background: $color-primary;
1582
+ color: #fff;
1583
+ }
1584
+ }
1585
+
1586
+ .reveal-modal #search_form {
1587
+ margin-bottom: 1em;
1588
+ }
1589
+
1590
+ .reveal-modal .close-reveal-modal {
1591
+ font-size: 1em;
1592
+ clear: both;
1593
+ text-decoration: none;
1594
+ color: $color-gray-dark;
1595
+ text-align: center;
1596
+ margin: 1em 0;
1597
+ position: relative;
1598
+ top: auto;
1599
+ display: block;
1600
+ padding: 1em 0;
1601
+ right: auto;
1602
+ width: 100%;
1603
+ bottom: auto;
1604
+ }
1605
+
1606
+
1544
1607
  #search_form {
1545
1608
  padding: 1.1em 0;
1546
1609
  text-align: right;
@@ -20,9 +20,9 @@
20
20
  <div class="small-12 medium-4 columns">
21
21
  <ul>
22
22
  <li><b>Resources</b></li>
23
- <li><a href="/employment/">Veterans Employment Center&trade;</a></li>
24
- <li><a href="/facility-locator">Facility Locator</a></li>
25
- <li><a href="/gibill/">GI Bill® Comparison Tool</a></li>
23
+ <li><a class="vets-app" href="/veterans-employment-center/">Veterans Employment Center&trade;</a></li>
24
+ <li><a class="vets-app" href="/facility-locator">Facility Locator</a></li>
25
+ <li><a class="vets-app" href="/gi-bill-comparison-tool/">GI Bill® Comparison Tool</a></li>
26
26
  </ul>
27
27
  </div>
28
28
  <!--Use with Signup <div class="small-12 medium-2 columns"> -->
@@ -30,7 +30,7 @@
30
30
  <ul>
31
31
  <li><b>Process</b></li>
32
32
  <li><a href="/playbook/">Playbook</a></li>
33
- <li><a href="/blog/">Blog</a></li>
33
+ <li><a href="/experience/">Blog</a></li>
34
34
  </ul>
35
35
  </div>
36
36
  <div class="small-12 medium-2 columns">
@@ -68,8 +68,8 @@
68
68
  <abbr>VA</abbr> | U.S. Department of Veterans Affairs
69
69
  </div>
70
70
  <div class="medium-7 columns">
71
- <ul class="inline-list">
72
- <li><a href="http://va.gov">Va.gov</a></li>
71
+ <ul class="final-list">
72
+ <li><a href="http://www.va.gov">VA.gov</a></li>
73
73
  <li><a href="http://www.section508.va.gov/">Accessibility</a></li>
74
74
  <li><a href="http://www.va.gov/privacy/">Privacy</a></li>
75
75
  <li><a href="http://usa.gov">USA.gov</a></li>
@@ -87,3 +87,15 @@
87
87
  </div>
88
88
  </div>
89
89
  </div>
90
+
91
+ <div data-alert class="alert-box coda">
92
+ <div class="row full">
93
+ <div class="small-12 medium-6 columns">
94
+ <a href="{{ site.url }}/2015/11/11/why-we-are-designing-in-beta.html" class="usa-button usa-button-outline-inverse">Help Us Create vets.gov: A Message from Secretary Robert McDonald</a>
95
+ </div>
96
+ <div class="small-12 medium-6 columns feedback">
97
+ We need your feedback to make Vets.gov better.<br/>
98
+ <a href="https://veterans.uservoice.com/">Feedback Forum</a>
99
+ </div>
100
+ </div>
101
+ </div>
@@ -1,7 +1,58 @@
1
1
  <div class="header">
2
+ <div data-alert class="alert-box notice">
3
+ <div class="row full">
4
+ <div class="small-12 message">
5
+ <p><strong>This site is a <a href="https://www.vets.gov/playbook/design/">work in progress.</a></strong> If you don&rsquo;t find what you need, visit <a href="http://www.va.gov">VA.gov</a>.</p>
6
+ </div>
7
+ </div>
8
+ </div>
9
+
10
+ <!-- /header alert box -->
2
11
  <div class="row full">
3
- <div class="small-9 medium-4 columns">
12
+ <div class="small-6 medium-4 columns">
4
13
  <h1 role="banner"><a href="/">Vets.gov</a></h1>
5
14
  </div>
15
+
16
+ <!-- Mobile search button -->
17
+ <div class="hide-for-medium-up search-button" id="trigger-overlay-button">
18
+ <button type="button" data-reveal-id="mobile-menu" class="usa-button usa-button-outline-inverse" aria-hidden="true">Search</button>
19
+ </div>
20
+
21
+ <div id="mobile-menu" class="reveal-modal overlay overlay-fullscreen" data-reveal aria-labelledby="modalTitle" aria-hidden="true" role="dialog" data-options="close_on_background_click:false">
22
+ <button type="usa-button" id="overlay-close-button" class="overlay-close close-reveal-modal" aria-label="Close">Close</button>
23
+ <div class="menu">
24
+ <form accept-charset="UTF-8" action="https://search.usa.gov/search" id="search_form" method="get">
25
+ <div style="margin:0;padding:0;display:inline">
26
+ <input name="utf8" type="hidden" value="&#x2713;" /></div>
27
+ <input id="affiliate" name="affiliate" type="hidden" value="vets.gov_staging" />
28
+ <label for="mobile-query">Search:</label>
29
+ <div class="row collapse">
30
+ <div class="small-9 columns">
31
+ <input autocomplete="off" class="usagov-search-autocomplete" id="mobile-query" name="query" type="text" />
32
+ </div>
33
+ <div class="small-3 columns">
34
+ <input name="commit" type="submit" value="Search" />
35
+ </div>
36
+ </div>
37
+ </form>
38
+ </div>
39
+ </div>
40
+
41
+ <div class="medium-5 medium-offset-3 text-right columns show-for-medium-up">
42
+ <form accept-charset="UTF-8" action="https://search.usa.gov/search" id="search_form" method="get">
43
+ <div style="margin:0;padding:0;display:inline">
44
+ <input name="utf8" type="hidden" value="&#x2713;" /></div>
45
+ <input id="affiliate" name="affiliate" type="hidden" value="vets.gov_staging" />
46
+ <label for="query">Search:</label>
47
+ <div class="row collapse">
48
+ <div class="small-9 columns">
49
+ <input autocomplete="off" class="usagov-search-autocomplete" id="query" name="query" type="text" />
50
+ </div>
51
+ <div class="small-3 columns">
52
+ <input name="commit" type="submit" value="Search" />
53
+ </div>
54
+ </form>
55
+ </div>
56
+ </div>
6
57
  </div>
7
58
  </div>
@@ -1,3 +1,3 @@
1
1
  module VaCommon
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: va_common
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emily Wright-Moore
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-08 00:00:00.000000000 Z
11
+ date: 2015-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -321,6 +321,7 @@ files:
321
321
  - app/assets/js/stellar-settings.js
322
322
  - app/assets/js/va_common_main.js
323
323
  - app/assets/js/vendor/classie.js
324
+ - app/assets/js/vendor/foundation.reveal.js
324
325
  - app/assets/js/vendor/nwmatcher-1.2.5-min.js
325
326
  - app/assets/js/vendor/svg-injector.js
326
327
  - app/assets/stylesheets/_va.scss