Can I get Zurb Foundation to handle dynamic images with data-interchange? -


we're using zurb foundation on site , looking use data-interchange instead of background images.

while handles images image extension (jpg, png) chokes whenever try use our cms' dynamically created images.

example:

<!doctype html> <!--[if ie 9]><html class="lt-ie10" lang="en"> <![endif]--> <html class="no-js" lang="en"> <head>     <meta charset="utf-8"/>     <meta name="viewport" content="width=device-width, initial-scale=1.0"/>     <title>data-interchange test</title>      <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/css/normalize.css"/>     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/css/foundation.css"/>      <script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/js/vendor/modernizr.js"></script> </head> <body> <div class="row"><div class="large-12 columns">     <div data-interchange="[http://bus.wisc.edu/_images/template/global/thin/logo-horizontal.png, (default)]" style="width:100%;height:400px;">         jpg extension     </div> </div></div>  <div class="row"><div class="large-12 columns">     <div data-interchange="[https://placeholdit.imgix.net/~text?txtsize=33&txt=350%c3%97150&w=640&h=150, (default)]" style="width:100%;height:400px;">         dynamic image     </div> </div></div>      <script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/js/vendor/jquery.js"></script>     <script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/js/foundation/foundation.min.js"></script>     <script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.5.2/js/foundation/foundation.interchange.min.js"></script>     <script>         $(document).foundation();     </script> </body> </html> 

based upon their documentation on interchange, sounds they're treating content , trying load in such:

when add data-interchange attribute containing image paths (.jpg, .jpeg, .png, .gif, .bmp, .tiff), instead of replacing element content set background-image css property corresponding path.

what doesn't have way tell foundation treat image, i'm hoping for.

is there way tell foundation treat urls particular type (image vs. content)?


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -