Created
January 8, 2020 21:04
-
-
Save Hexer10/b07cf918215b42d5f17904f907d8e29b to your computer and use it in GitHub Desktop.
This file contains hidden or 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"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta name="scaffolded-by" content="https://github.com/google/stagehand"> | |
<title>web_test</title> | |
<link rel="stylesheet" href="styles.css"> | |
<link rel="icon" href="favicon.ico"> | |
<script defer src="main.dart.js"></script> | |
</head> | |
<body> | |
<div class="card-image"> | |
<a href="/"> | |
Hellos | |
</a> | |
<a href="/"> | |
<img src="https://icatcare.org/app/uploads/2018/07/Thinking-of-getting-a-cat.png" alt="Cat"> | |
</a> | |
</div> | |
</body> | |
</html> |
This file contains hidden or 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 'dart:html'; | |
void main() { | |
var div = querySelector('.card-image'); | |
var img = div.children[1].children[0] as ImageElement; | |
print(img.src); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment