coffeescript tag

11 questions


1 answers
91 views
0
I want to understand the JavaScript code of the share button on Twitter.

!function(d,s,id){}( document, 'script', 'twitter-wjs');This is part of Twitter's share button code.Also, what happens if I write this in coffeescript?

2 years ago

2 answers
90 views
0
How to not use immediate functions in coffeescript

When coffeescript is compiled, it is surrounded by immediate functions, but what should I do if I want to leave it out?

2 years ago

2 answers
109 views
0
Learn how to navigate web pages by stepping on HTML.

I'm sorry to trouble you, but is there anyone who can decipher what's going on in HTML written in the article below?It seems that the time when the article was written has changed from the time when t...

2 years ago

1 answers
83 views
0
Directive for textarea where the value is submitted with the Enter

Nice to meet you.Let me ask you a question.Currently, we have created and implemented textarea as follows for projects using angular.Unlike the basic textarea, I would like to submit the form by enter...


2 answers
92 views
0
What does the word "@" in "self=@" mean?

I am reading the jQuery plug-in written in CoffeeScript, but I do not understand the description of @.What does it stand for?self=@Also, what does @ mean in Javascript and jQuery?Even if I look for it...


1 answers
90 views
0
Where is the specification for the file name separated by dot with grant written?

When I look at angular-fullstack and so on, it seems that the files separated by dot are combined, but I couldn't understand how it works when I looked around Building the files object dynamically. If...

2 years ago

1 answers
64 views
0
I want to empty the text box after the form is submitted in Angular

It's just as the title says.In the Angular form, the controller wrote the process of emptying the text box when the value of the text box was sent, but I was struggling because it didn't work as well ...

2 years ago

1 answers
76 views
0
I want to transfer focus to the next textaera with the Enter key and to the previous textarea with the Backspace key.

It's just as the title says.Let me ask you a question.We have created a textarea directive that corresponds to the focus movement with the Enter and Backspace keys.After typing in textarea, press Ente...


1 answers
96 views
0
I want to display each thumbnail image in a file_field of a dynamic form where rails can post multiple images.

I want to distribute a separate id to each form generated by the dynamic form.(I want to display each image that I pulled from the database) I'd like to introduce a dynamic form using coffeescript int...


1 answers
91 views
0
Is there any recommended method to run JavaScript based on the URL?

I use rails and vue.js in combination.In rails, there is a system in which js eventually become one, so I would like to use one js for multiple URLs.So I created the following code: if matches=locatio...

- 1 - »

© 2024 OneMinuteCode. All rights reserved.