homesteading_assets 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b694b620c3aee53048e476c2e6e5796ca300c4b9
|
4
|
+
data.tar.gz: 87f71fca137280207516c4a00d87082cecf42aae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5f673ec29013f137d16e5f3b0cf01e373cb10ec6900b9afbfa66dcc957b47a14f0a91567b42b583656dc1eb4c242c0b44600a78380759d46c0e34b17998b86e
|
7
|
+
data.tar.gz: ae2ab76dd7cee75bf2dcbe5f2cb5812b7a2f1fca2855d98b1c9bc6450e006900e38bf44716a0f1678bbc9cf3596058f527daad445c6507c970e774c26f530670
|
@@ -1,7 +1,7 @@
|
|
1
|
-
//= require modernizr
|
2
|
-
//= require jquery
|
1
|
+
//= require homesteading_assets/modernizr
|
2
|
+
//= require homesteading_assets/jquery
|
3
3
|
//= require jquery_ujs
|
4
|
-
//= require jquery.simplyCountable
|
4
|
+
//= require homesteading_assets/jquery.simplyCountable
|
5
5
|
|
6
6
|
// for p-location geo fields
|
7
7
|
// TODO: extract into plugin and out of global namespace
|
@@ -17,38 +17,28 @@ function populateGeoFields(position) {
|
|
17
17
|
var longitude = position.coords.longitude;
|
18
18
|
var altitude = position.coords.altitude;
|
19
19
|
|
20
|
-
$("
|
21
|
-
$("
|
22
|
-
$("
|
20
|
+
$(".new .p-location .p-latitude" ).val(latitude);
|
21
|
+
$(".new .p-location .p-longitude").val(longitude);
|
22
|
+
$(".new .p-location .p-altitude" ).val(altitude);
|
23
23
|
}
|
24
24
|
|
25
25
|
|
26
26
|
// for dt-published datetime field
|
27
27
|
// TODO: extract into plugin and out of global namespace
|
28
28
|
function ISODateString(d){
|
29
|
-
function pad(n) { return n < 10 ?
|
30
|
-
return d.getUTCFullYear()+
|
31
|
-
+ pad(d.getUTCMonth()+1)+
|
32
|
-
+ pad(d.getUTCDate())+
|
33
|
-
+ pad(d.getUTCHours())+
|
34
|
-
+ pad(d.getUTCMinutes())+
|
35
|
-
+ pad(d.getUTCSeconds())+
|
29
|
+
function pad(n) { return n < 10 ? "0" + n : n }
|
30
|
+
return d.getUTCFullYear()+"-"
|
31
|
+
+ pad(d.getUTCMonth()+1)+"-"
|
32
|
+
+ pad(d.getUTCDate())+"T"
|
33
|
+
+ pad(d.getUTCHours())+":"
|
34
|
+
+ pad(d.getUTCMinutes())+":"
|
35
|
+
+ pad(d.getUTCSeconds())+"-07:00"
|
36
36
|
}
|
37
37
|
|
38
38
|
|
39
39
|
$(function() {
|
40
|
-
// for notes
|
41
|
-
$('#note_content').simplyCountable({
|
42
|
-
counter: '#content-count',
|
43
|
-
countDirection: 'up',
|
44
|
-
maxCount: 120,
|
45
|
-
safeClass: 'under',
|
46
|
-
overClass: 'over',
|
47
|
-
thousandSeparator: ','
|
48
|
-
});
|
49
|
-
|
50
40
|
// prints something like 2009-09-28T19:03:12Z
|
51
|
-
$("
|
41
|
+
$(".new .dt-published").val(ISODateString(new Date()))
|
52
42
|
|
53
43
|
// ask user to access their location
|
54
44
|
// populate lat/lon/alt fields
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: homesteading_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Becker
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-10-
|
12
|
+
date: 2014-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|