Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions main.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,14 @@ input[type=checkbox].add-to-calendar-checkbox {

.icon-google:before {
background-position: -52px 0;
}
.screen-readers {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
border: 0;
}
7 changes: 4 additions & 3 deletions ouical.js
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
'&sprop=&sprop=name:'
].join(''));
return '<a class="icon-google" target="_blank" href="' +
href + '">Google Calendar</a>';
href + '">Google Calendar' + event.uniqueInfo + '</a>';
},

yahoo: function(event) {
Expand Down Expand Up @@ -60,7 +60,7 @@
].join(''));

return '<a class="icon-yahoo" target="_blank" href="' +
href + '">Yahoo! Calendar</a>';
href + '">Yahoo! Calendar' + event.uniqueInfo + '</a>';
},

ics: function(event, eClass, calendarName) {
Expand All @@ -82,7 +82,7 @@
'END:VCALENDAR'].join('\n'));

return '<a class="' + eClass + '" target="_blank" href="' +
href + '">' + calendarName + ' Calendar</a>';
href + '">' + calendarName + ' Calendar' + event.uniqueInfo + '</a>';
},

ical: function(event) {
Expand All @@ -95,6 +95,7 @@
};

var generateCalendars = function(event) {
event.uniqueInfo = '<span class="screen-readers">for ' + event.title + ' on ' + event.start +'</span>';
return {
google: calendarGenerators.google(event),
yahoo: calendarGenerators.yahoo(event),
Expand Down