Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

@media query trimmed out in published html

Community Beginner ,
Jan 28, 2016 Jan 28, 2016

i had added this style


@media only screen and (orientation : landscape) and (max-device-height : 320px) { div { border : 1px solid red; } } added in C:\Program Files\Adobe\Adobe Captivate 9 x64\HTML\index.html and when its published it trimmed @media ?


Why..any idea ?

481
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

People's Champ , Jan 28, 2016 Jan 28, 2016

I think it is because Captivate uses the @ symbol to designate dynamic attributes when it publishes. For example <title>@MOVIETITLE</title>

You may have to add it with JavaScript and mask the @ symbol.

http://modernweb.com/2014/03/24/using-media-queries-in-javascript/

Translate
People's Champ ,
Jan 28, 2016 Jan 28, 2016

Which type of project are you using?

Responsive?

HTML5 or SWF or both?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 28, 2016 Jan 28, 2016

publish to my computer dialogue box details:

     publish as html5/swf

     output format html5

          ticked yes for scalable html content

          resolution 1024*627

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jan 28, 2016 Jan 28, 2016

So to be clear, just HTML5 not SWF?

Also, are you publishing to SCORM?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 28, 2016 Jan 28, 2016

Correct , only html5

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jan 28, 2016 Jan 28, 2016

That is the file you should be editing. Mine works just fine. There is also a win8index.html file, but it is not used on my Win8 machine.

Can you post the header of your file? Down to function onBodyLoad()

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 28, 2016 Jan 28, 2016

1.JPG

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jan 28, 2016 Jan 28, 2016

I think it is because Captivate uses the @ symbol to designate dynamic attributes when it publishes. For example <title>@MOVIETITLE</title>

You may have to add it with JavaScript and mask the @ symbol.

http://modernweb.com/2014/03/24/using-media-queries-in-javascript/

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jan 29, 2016 Jan 29, 2016
LATEST

Also be aware that CP has @media all and (max-width:335px) in the CPLibraryAll.css

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Jan 28, 2016 Jan 28, 2016

1.JPG

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
People's Champ ,
Jan 28, 2016 Jan 28, 2016

It may be using a different file since you are publishing to SCORM.

Try:

C:\Program Files\Adobe\Adobe Captivate 9 x64\Templates\Publish\LMS\Standard\SCORM\Default\2004\Default_HTML5.html or default.html

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Help resources