Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
c() {
h1 = element("h1");
t = text(ctx[0]);
},
m(target, anchor) {
c() {
div = element("div");
set_style(div, "color", ctx[0]);
set_style(div, "transform", "translate(" + ctx[1] + "px," + ctx[2] + "px)");
},
m(target, anchor) {
c() {
button = element("button");
button.textContent = "foo";
t1 = space();
p = element("p");
t2 = text("number of things: ");
t3 = text(t3_value);
dispose = listen(button, "click", ctx[1]);
},
m(target, anchor) {
c() {
p0 = element("p");
button0 = element("button");
button0.textContent = "set handler 1";
t1 = space();
button1 = element("button");
button1.textContent = "set handler 2";
t3 = space();
p1 = element("p");
t4 = text(/*number*/ ctx[1]);
t5 = space();
button2 = element("button");
button2.textContent = "click";
dispose = [
listen(button0, "click", /*updateHandler1*/ ctx[2]),
listen(button1, "click", /*updateHandler2*/ ctx[3]),
listen(button2, "click", function () {
if (is_function(/*clickHandler*/ ctx[0])) /*clickHandler*/ ctx[0].apply(this, arguments);
})
];
},
m(target, anchor) {
c() {
span = element("span");
t = text(t_value);
},
m(target, anchor) {
function add_css() {
var style = element("style");
style.id = "svelte-1slhpfn-style";
style.textContent = "@media(min-width: 1px){div.svelte-1slhpfn{color:red}}";
append(document.head, style);
}
c() {
for (let i = 0; i < each_blocks.length; i += 1) {
each_blocks[i].c();
}
t0 = space();
p = element("p");
t1 = text(ctx[3]);
},
m(target, anchor) {
c() {
input = element("input");
attr(input, "type", "file");
input.multiple = true;
dispose = listen(input, "change", /*input_change_handler*/ ctx[1]);
},
m(target, anchor) {
c() {
p = element("p");
p.textContent = "foo!";
},
m(target, anchor) {
c() {
select = element("select");
option0 = element("option");
option0.textContent = "1";
option1 = element("option");
option1.textContent = "2";
option0.__value = "1";
option0.value = option0.__value;
option1.__value = "2";
option1.value = option1.__value;
},
m(target, anchor) {