All code is available in example app - https://github.com/maxivak/webpacker-rails-example-app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery.extend(jQuery.fn, { | |
frameColissimoOpen: function (s) { | |
var i = jQuery.noConflict(), | |
o = []; | |
o.push('<div class="couleur1" id="widget_colissimo_couleur1" style="display : none;" ></div>'), | |
o.push('<div class="couleur2" id="widget_colissimo_couleur2" style="display : none;" ></div>'), | |
o.push('<div class="police" id="widget_colissimo_police" style="display : none;" ></div>'), | |
(conteneur_widget_colissimo = this).html(o.join("\n")), | |
null == s.couleur1 | |
? null != i(".couleur1").css("color") && null != i(".couleur1").css("color") && "" != i(".couleur1").css("color") && "rgb(0, 0, 0)" != i(".couleur1").css("color") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
class ColissimoWidget extends Component { | |
componentDidMount() { | |
this.loadScript('https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.js', () => { | |
this.loadScript('https://api.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.js', () => { | |
this.loadScript('https://ws.colissimo.fr/widget-colissimo/js/jquery.plugin.colissimo.min.js', this.initializeWidget); | |
}); | |
}); | |
this.loadStyle('https://api.mapbox.com/mapbox-gl-js/v2.6.1/mapbox-gl.css'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am bqst on github. | |
* I am bqst (https://keybase.io/bqst) on keybase. | |
* I have a public key ASBcpCnHtFNNaFepOs_DDH2kK7slNFVHvBe1-WiEPezJuAo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Microdata example - blog article</title> | |
</head> | |
<body itemscope itemtype="https://schema.org/WebPage"> | |
<!-- Accessibility levels --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{:value=>"accounting", :text=>"Comptabilité"}, {:value=>"airlines-aviation", :text=>"Aviation/transport aérien"}, {:value=>"alternative-medicine", :text=>"Médecines alternatives"}, {:value=>"animation", :text=>"Animation"}, {:value=>"architecture-planning", :text=>"Architecture et planification"}, {:value=>"arts-and-crafts", :text=>"Art et loisirs"}, {:value=>"automotive", :text=>"Automobile"}, {:value=>"aviation-aerospace", :text=>"Aviation/aéronautique"}, {:value=>"banking", :text=>"Banque"}, {:value=>"broadcast-media", :text=>"Médias audiovisuels"}, {:value=>"building-materials", :text=>"Matériaux de construction"}, {:value=>"capital-markets", :text=>"Marchés de capitaux"}, {:value=>"civic-social-organization", :text=>"Organisations citoyennes et sociales"}, {:value=>"commercial-real-estate", :text=>"Immobilier commercial"}, {:value=>"computer-network-security", :text=>"Sécurité informatique et réseau"}, {:value=>"computer-hardware", :text=>"Matériel informatique"}, {:value=>"computer-networking", :text=> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app/assets/javascripts/notifications.coffee | |
class Notifications | |
constructor: -> | |
@getNewNotifications() | |
@notifications = $("[data-behavior='notifications']") | |
if @notifications.length > 0 | |
@handleSuccess @notifications.data('notifications') | |
$("[data-behavior='notifications-link']").on "click", @handleClick |
NewerOlder