mirror of
https://github.com/neocities/neocities.git
synced 2025-08-04 16:51:36 +02:00
streamline CSS, remove google font/cdn dep
This commit is contained in:
parent
ab6abc637e
commit
47344e8bdc
186 changed files with 31689 additions and 1655 deletions
16
public/js/news/template.js
Normal file
16
public/js/news/template.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
var Template = {
|
||||
template: function(templateString, data) {
|
||||
var data = data || {}
|
||||
return _.template(templateString, data, {
|
||||
interpolate: /\{\{-(.+?)\}\}/g,
|
||||
escape: /\{\{(.+?)\}\}/g
|
||||
})
|
||||
},
|
||||
|
||||
renderComment: function(eventId) {
|
||||
var event = $('#event_'+eventId+'_actions')
|
||||
var rendered = this.template($('#comment-template').html(), {eventId: eventId})
|
||||
event.find('a#reply').css('display', 'none')
|
||||
event.append(rendered)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue