Files
ent/doc/website/static/js/custom.js
Ariel Mashraki 684d219a35 ent/doc: grammar and typo fixes
Reviewed By: dlvhdr

Differential Revision: D17152480

fbshipit-source-id: dfd248625ba8be9bf3b5f922f29b476821fdf78e
2019-09-02 02:24:05 -07:00

12 lines
430 B
JavaScript

// Copyright 2019-present Facebook Inc. All rights reserved.
// This source code is licensed under the Apache 2.0 license found
// in the LICENSE file in the root directory of this source tree.
/* eslint-disable */
window.addEventListener('load', function() {
// add an id tag for images based on their alt attribute.
document.querySelectorAll('.container img').forEach(function(el) {
el.id = el.alt;
});
});