Comments (4)
Olá @MarcoBatista ,
Esse erro indica que estás a usar a Modal da v2... Podias colocar aqui o markup (HTML) da Modal que estás a usar?
from ink.
Olá @MarcoBatista ,
De forma a confirmar o erro reportado, acedi ao site http://ink.sapo.pt , copiei o exemplo e fiz a seguinte página HTML:
<html>
<head>
<title>Modal Test</title>
<link rel="stylesheet" href="http://css.ink.sapo.pt/v1/css/ink.css">
<script src="http://js.sapo.pt/Bundles/Ink.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div id="modalContent" style="display:none">
<div class="ink-space">
<h1>Some title</h1>
<p><em>Hello modal!</em></p>
<p>dismiss it pressing the close button or the escape key.</p>
</div>
</div>
<a style="cursor:pointer;" id="bModal">Open modal</a>
<script type="text/javascript">
SAPO.Dom.Event.observe('bModal', 'click', function(ev) {
new SAPO.Ink.Modal('#modalContent', {
width: 500,
height: 250
});
});
</script>
</body>
</html>
E funciona =/ ... Portanto, vou precisar de um exemplo do código que não funciona... :)
from ink.
tens razão estava a utilizar o código da v1 com na v2, estava a ver a documentação errada.
estou a ter timeout nesta linha de código
script type="text/javascript" src="http://10.134.132.33/ink/js/ink.js"
Tenho uma dúvida se estiver a utilizar a v2 do ink tb tenho de fazer a inclusão da v1?
from ink.
Olá @MarcoBatista ,
Consegues especificar-me em que página está esse pedaço de código?
Não, se estiveres a usar a v2, deves usar apenas a v2... São independentes.
Essa script tag deverá apontar para o ficheiro ink.js do directório onde tens a pasta com os ficheiros javascript, na nossa branch de develop está aqui: https://github.com/sapo/Ink/tree/develop/js
Amanhã irei saber se já temos um endereço CDN disponível para a v2... Até lá, poderás usar o ficheiro local :)
from ink.
Related Issues (20)
- delete
- delete
- all-100 doesn't push out to full width HOT 2
- Node 6.4.0 Breaks Ink HOT 2
- Issues with Next button of date picker HOT 1
- IE 8 Errors out on missing Ink.Util.Validator_1 module HOT 2
- Lazy loads with Carousel HOT 1
- Modal dialog does not appear
- can't choose past years on datepicker
- date format rule problem in datepicker HOT 1
- React support HOT 1
- tooltip not showing up HOT 2
- Further development HOT 1
- What Happened? HOT 2
- ssl on your cdn not working HOT 2
- Typescript: Cannot find name 'Ink' HOT 1
- Ink.UI.SmoothScroller - preventDefault - page still refreshing HOT 1
- Hide div based on specific screen size HOT 1
- Ink Badge being cut off HOT 1
- Ink-badge is adding a .6 left margin HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ink.